Additional work on entities and themes

This commit is contained in:
2024-04-05 01:16:51 -04:00
parent d186d4da6e
commit e09da17c4e
3 changed files with 7 additions and 2 deletions

View File

@@ -5,10 +5,11 @@ type stat struct {
name string
short string
value int
current int
}
type attributes struct {
health stat
health stat
strength stat
endurance stat
dexterity stat

View File

@@ -13,6 +13,7 @@ func (p *Player) AdjustStats(which string, newvalue int) *Player {
case "endurance","end":
p.stats.endurance.value = newvalue
p.stats.health.value = 5 + (5*newvalue)
p.stats.health.current = 5 + (5*newvalue)
case "wisdom","wis":
p.stats.wisdom.value = newvalue
case "intelligence","int":