Merge branch 'pfau/smöl_fixes' into 'master'

change merchant backpack visuals and add mining skill icons

See merge request veloren/veloren!3089
This commit is contained in:
Monty Marz 2022-01-08 09:32:51 +00:00
commit bc1c84aa76
3 changed files with 3 additions and 2 deletions

View File

@ -6,7 +6,6 @@
Armor(Feet): Item("common.items.armor.merchant.foot"),
Armor(Belt): Item("common.items.armor.merchant.belt"),
Armor(Head): Item("common.items.armor.merchant.turban"),
Lantern: Item("common.items.lantern.black_0"),
Armor(Neck): Item("common.items.armor.misc.neck.gem_of_resilience"),
Armor(Ring1): Item("common.items.armor.misc.ring.gold"),

View File

@ -351,6 +351,8 @@ pub fn ability_image(imgs: &img_ids::Imgs, ability_id: &str) -> image::Id {
"common.abilities.shield.block" => imgs.onehshield_m2,
// Dagger
"common.abilities.dagger.tempbasic" => imgs.onehdagger_m1,
// Pickaxe
"common.abilities.pick.swing" => imgs.mining,
_ => imgs.not_found,
}

View File

@ -1108,7 +1108,7 @@ fn weapon_bag(economy: Option<&trade::SiteInformation>) -> Item {
fn ingredient_backpack(economy: Option<&trade::SiteInformation>, rng: &mut impl Rng) -> Item {
#![warn(clippy::pedantic)]
let mut bag = Item::new_from_asset_expect("common.items.armor.misc.back.backpack");
let mut bag = Item::new_from_asset_expect("common.items.armor.merchant.back");
let slots = bag.slots_mut();
// It's safe to truncate here, because coins clamped to 3000 max