From ad5a1facccb9abdacad3db465d7709708acf46ed Mon Sep 17 00:00:00 2001 From: andy Date: Sat, 14 Aug 2021 17:02:33 +0000 Subject: [PATCH] make the right items drop with kill counters --- src/ship/drops/rare_drop_table.rs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/ship/drops/rare_drop_table.rs b/src/ship/drops/rare_drop_table.rs index 5104a7c..d8350e5 100644 --- a/src/ship/drops/rare_drop_table.rs +++ b/src/ship/drops/rare_drop_table.rs @@ -103,7 +103,13 @@ impl RareDropTable { grind: 0, attrs: self.attribute_table.generate_rare_attributes(map_area, rng), tekked: false, - kills: None, + kills: { + if weapon.has_counter() { + Some(0) + } else { + None + } + }, }) }, @@ -126,7 +132,13 @@ impl RareDropTable { ItemDropType::Unit(Unit { unit, modifier: None, - kills: None, + kills: { + if unit.has_counter() { + Some(0) + } else { + None + } + }, }) }, RareDropItem::Tool(tool) => {