rebalance armor and hp limits

This commit is contained in:
2026-01-31 18:06:15 +01:00
parent 05f58cdbf5
commit a6391f961d
2 changed files with 7 additions and 7 deletions

View File

@@ -14,7 +14,7 @@ class Entity(Serializable):
self.intelligence = 20
self.wisdom = 20
self.charisma = 20
self.hp = 100
self.hp = 20
self.armor = 100
self.speed = 100
@@ -65,7 +65,7 @@ class Entity(Serializable):
def get_hp(self):
if self.equipped_item and "hp" in self.equipped_item.stat_modifier.keys():
return self.clamp(self.hp + self.equipped_item.stat_modifier["hp"], 0, 100)
return self.clamp(self.hp + self.equipped_item.stat_modifier["hp"], 0, 40)
return self.clamp(self.hp, 0, 100)
def get_armor(self):
@@ -98,7 +98,7 @@ class Entity(Serializable):
self.charisma = self.clamp(value, 0, 20)
def set_hp(self, value:int):
self.hp = self.clamp(value, 0, 100)
self.hp = self.clamp(value, 0, 40)
def set_armor(self, value:int):
self.armor = self.clamp(value, 0, 100)