mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
trade with alchemists
This commit is contained in:
parent
9b48faba7e
commit
63f1ac0e31
@ -75,6 +75,15 @@ fn blacksmith_loadout(
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn alchemist_loadout(
|
||||||
|
loadout_builder: LoadoutBuilder,
|
||||||
|
economy: Option<&SiteInformation>,
|
||||||
|
) -> LoadoutBuilder {
|
||||||
|
trader_loadout(loadout_builder, economy, |good| {
|
||||||
|
matches!(good, Good::Potions)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
fn profession_extra_loadout(
|
fn profession_extra_loadout(
|
||||||
profession: Option<&Profession>,
|
profession: Option<&Profession>,
|
||||||
) -> fn(LoadoutBuilder, Option<&SiteInformation>) -> LoadoutBuilder {
|
) -> fn(LoadoutBuilder, Option<&SiteInformation>) -> LoadoutBuilder {
|
||||||
@ -83,6 +92,7 @@ fn profession_extra_loadout(
|
|||||||
Some(Profession::Farmer) => farmer_loadout,
|
Some(Profession::Farmer) => farmer_loadout,
|
||||||
Some(Profession::Chef) => chef_loadout,
|
Some(Profession::Chef) => chef_loadout,
|
||||||
Some(Profession::Blacksmith) => blacksmith_loadout,
|
Some(Profession::Blacksmith) => blacksmith_loadout,
|
||||||
|
Some(Profession::Alchemist) => alchemist_loadout,
|
||||||
_ => loadout_default,
|
_ => loadout_default,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -90,7 +100,7 @@ fn profession_extra_loadout(
|
|||||||
fn profession_agent_mark(profession: Option<&Profession>) -> Option<comp::agent::Mark> {
|
fn profession_agent_mark(profession: Option<&Profession>) -> Option<comp::agent::Mark> {
|
||||||
match profession {
|
match profession {
|
||||||
Some(
|
Some(
|
||||||
Profession::Merchant | Profession::Farmer | Profession::Chef | Profession::Blacksmith,
|
Profession::Merchant | Profession::Farmer | Profession::Chef | Profession::Blacksmith | Profession::Alchemist,
|
||||||
) => Some(comp::agent::Mark::Merchant),
|
) => Some(comp::agent::Mark::Merchant),
|
||||||
Some(Profession::Guard) => Some(comp::agent::Mark::Guard),
|
Some(Profession::Guard) => Some(comp::agent::Mark::Guard),
|
||||||
_ => None,
|
_ => None,
|
||||||
|
Loading…
Reference in New Issue
Block a user