aboutsummaryrefslogtreecommitdiff
path: root/internal/game/equip_stats.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-19 02:08:55 -0400
committerhistoria <[not public]>2026-06-19 02:08:55 -0400
commit458916fb78dcef3ff77cb29b7ba98d9f646819fc (patch)
tree19cd8b8eef41a1aa00d155bf7953ad2770f91a4c /internal/game/equip_stats.go
parent97a1a908b9e6e6d3516628c139c9b64262b4fe08 (diff)
downloadthehouseoficarus-458916fb78dcef3ff77cb29b7ba98d9f646819fc.tar.gz
feat: rough pharmacy skill added
Diffstat (limited to 'internal/game/equip_stats.go')
-rw-r--r--internal/game/equip_stats.go31
1 files changed, 31 insertions, 0 deletions
diff --git a/internal/game/equip_stats.go b/internal/game/equip_stats.go
new file mode 100644
index 0000000..559671f
--- /dev/null
+++ b/internal/game/equip_stats.go
@@ -0,0 +1,31 @@
+package game
+
+import (
+ "thehouseoficarus/internal/object"
+ "thehouseoficarus/internal/player"
+)
+
+func (g *Game) playerEquipBonuses(p *player.Player) object.ItemStats {
+ var totals object.ItemStats
+ for _, itemID := range p.Equipment {
+ def, err := g.ItemStore.Load(itemID)
+ if err != nil {
+ continue
+ }
+ totals.StabAttack += def.Stats.StabAttack
+ totals.SlashAttack += def.Stats.SlashAttack
+ totals.CrushAttack += def.Stats.CrushAttack
+ totals.ScienceAttack += def.Stats.ScienceAttack
+ totals.RangedAttack += def.Stats.RangedAttack
+ totals.StabDefense += def.Stats.StabDefense
+ totals.SlashDefense += def.Stats.SlashDefense
+ totals.CrushDefense += def.Stats.CrushDefense
+ totals.ScienceDefense += def.Stats.ScienceDefense
+ totals.RangedDefense += def.Stats.RangedDefense
+ totals.StrengthBonus += def.Stats.StrengthBonus
+ totals.RangedStrength += def.Stats.RangedStrength
+ totals.ScienceDamage += def.Stats.ScienceDamage
+ totals.TechnologyBonus += def.Stats.TechnologyBonus
+ }
+ return totals
+}