From 1e18d5729b02f26ee211758e544e96972743d977 Mon Sep 17 00:00:00 2001 From: jake Date: Wed, 23 Sep 2020 21:41:15 -0600 Subject: [PATCH] default to high price rather than zero --- src/ship/shops/armor.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ship/shops/armor.rs b/src/ship/shops/armor.rs index 07e115b..79dade5 100644 --- a/src/ship/shops/armor.rs +++ b/src/ship/shops/armor.rs @@ -38,7 +38,7 @@ impl ShopItem for ShopArmor { price += 70.0 * frame_stats.level_req as f32 * *slot as f32; price as usize }) - .unwrap_or(0) + .unwrap_or(0xFFFF) }, ShopArmor::Barrier(barrier) => { SHIELD_STATS.get(&barrier) @@ -49,14 +49,14 @@ impl ShopItem for ShopArmor { price += 70.0 * barrier_stats.level_req as f32; price as usize }) - .unwrap_or(0) + .unwrap_or(0xFFFF) }, ShopArmor::Unit(unit) => { UNIT_STATS.get(&unit) .map(|unit_stats| { (unit_stats.stars as f32 * UNIT_MULTIPLIER) as usize }) - .unwrap_or(0) + .unwrap_or(0xFFFF) } } }