fix: scale monster DEF with floor level like HP/ATK

This commit is contained in:
2026-03-24 10:17:48 +09:00
parent e3e6c5105c
commit ae3375a023
4 changed files with 33 additions and 1 deletions

View File

@@ -51,13 +51,14 @@ func NewMonster(mt MonsterType, floor int) *Monster {
}
hp := int(math.Round(float64(base.HP) * scale))
atk := int(math.Round(float64(base.ATK) * scale))
def := int(math.Round(float64(base.DEF) * scale))
return &Monster{
Name: base.Name,
Type: mt,
HP: hp,
MaxHP: hp,
ATK: atk,
DEF: base.DEF,
DEF: def,
IsBoss: base.IsBoss,
}
}