From 51d706fc6592e395b0e6b4cc279945d111b8dab8 Mon Sep 17 00:00:00 2001 From: jake Date: Wed, 29 Dec 2021 19:04:22 -0700 Subject: [PATCH] clippy demands more --- src/ship/map/enemy.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ship/map/enemy.rs b/src/ship/map/enemy.rs index 6cbe07e..b5efd7c 100644 --- a/src/ship/map/enemy.rs +++ b/src/ship/map/enemy.rs @@ -316,6 +316,7 @@ impl MapEnemy { } } + #[must_use] pub fn set_shiny(self) -> MapEnemy { MapEnemy { shiny: true, @@ -337,6 +338,7 @@ impl MapEnemy { TODO: distinguish between a `random` rare monster and a `set/guaranteed` rare monster? (does any acceptable quest even have this?) guaranteed rare monsters don't count towards the limit */ + #[must_use] pub fn set_rare_appearance(self) -> MapEnemy { match (self.monster, self.map_area.to_episode()) { (MonsterType::RagRappy, Episode::One) => {MapEnemy {monster: MonsterType::AlRappy, shiny:true, ..self}}, @@ -357,6 +359,7 @@ impl MapEnemy { } // in theory this should only be called on monsters we know can have rare types + #[must_use] pub fn roll_appearance_for_mission(self, rare_monster_table: &RareMonsterAppearTable) -> MapEnemy { if rare_monster_table.roll_appearance(&self.monster) { return self.set_rare_appearance()