diff --git a/scripts/NPC.gd b/scripts/NPC.gd index 52c46ce..7b90d75 100644 --- a/scripts/NPC.gd +++ b/scripts/NPC.gd @@ -19,7 +19,7 @@ func _random_mod_health() -> void: randomize() # noise factor var noise_factor = randf_range(7, 10) - self.maxHealth *= noise_factor + self.maxHealth = round(noise_factor * self.maxHealth) # difficulty factor match self.npcDifficulty: NPCDifficulty.MINION: @@ -33,7 +33,7 @@ func _random_mod_health() -> void: NPCDifficulty.BBEG: self.maxHealth *= 16 # npcTier factor - self.maxHealth *= exp(self.npcTier) + self.maxHealth = round(exp(self.npcTier) * self.maxHealth) # fun factor (just additional factor to tweak) self.maxHealth *= 10