Player and monster attacks follow the dungeon slayer rules
This commit is contained in:
@@ -72,7 +72,7 @@ impl Artifact for Potion {
|
||||
// only consume potion of the player can gain at least one health point
|
||||
if !player.is_healthy() {
|
||||
let old = player.get_life();
|
||||
player.change_life(self.health.try_into().unwrap());
|
||||
player.increase_life(self.health.try_into().unwrap());
|
||||
let new = player.get_life();
|
||||
messages.insert(0, format!("picked up potion and gained {} hp.", new - old).to_string());
|
||||
self.health = 0;
|
||||
|
||||
Reference in New Issue
Block a user