aboutsummaryrefslogtreecommitdiff
path: root/internal/game/equip_stats.go
diff options
context:
space:
mode:
authorworkhorse <workhorse@localhost.localdomain>2026-06-19 20:24:52 -0400
committerworkhorse <workhorse@localhost.localdomain>2026-06-19 20:24:52 -0400
commit8ee8982b8759bcae116647cc993867f4c8b0a6ce (patch)
treeee01f7b1d745cbc94d9981108a1209527487b3e5 /internal/game/equip_stats.go
parent2bec24859af8f03c80a0a58e3240519942450167 (diff)
downloadthehouseoficarus-8ee8982b8759bcae116647cc993867f4c8b0a6ce.tar.gz
reorganized items, objects, and rooms in directories. oranized module names. added startup checks.
Diffstat (limited to 'internal/game/equip_stats.go')
-rw-r--r--internal/game/equip_stats.go41
1 files changed, 0 insertions, 41 deletions
diff --git a/internal/game/equip_stats.go b/internal/game/equip_stats.go
deleted file mode 100644
index 02b8348..0000000
--- a/internal/game/equip_stats.go
+++ /dev/null
@@ -1,41 +0,0 @@
-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
-}
-
-func (g *Game) playerWeaponSpeed(p *player.Player) float64 {
- if itemID, ok := p.Equipment[object.SlotMainHand]; ok {
- def, err := g.ItemStore.Load(itemID)
- if err == nil && def.Speed > 0 {
- return def.Speed
- }
- }
- return 5.0
-}