aboutsummaryrefslogtreecommitdiff
path: root/internal/game/sys_combat.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-20 03:20:01 -0400
committerhistoria <[not public]>2026-06-20 03:20:01 -0400
commite4400c5f1e84c18d2126f2cb502ae10685977cbb (patch)
tree0523e9d68f1cfdc6f81b862e3068fe12c1a85054 /internal/game/sys_combat.go
parent5ea082ab4e82409aebc889b496f43e52b003d4f7 (diff)
downloadthehouseoficarus-e4400c5f1e84c18d2126f2cb502ae10685977cbb.tar.gz
refactor: combined all station crafting
Diffstat (limited to 'internal/game/sys_combat.go')
-rw-r--r--internal/game/sys_combat.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/sys_combat.go b/internal/game/sys_combat.go
index 030bed1..702871c 100644
--- a/internal/game/sys_combat.go
+++ b/internal/game/sys_combat.go
@@ -31,7 +31,7 @@ func (g *Game) dropItemsOnDeath(p *player.Player) {
items = append(items, deathDrop{
itemID: inv.ItemID,
quantity: inv.Quantity,
- totalVal: val,
+ totalValue: val,
invSlot: slot,
})
}
@@ -44,7 +44,7 @@ func (g *Game) dropItemsOnDeath(p *player.Player) {
items = append(items, deathDrop{
itemID: itemID,
quantity: 1,
- totalVal: val,
+ totalValue: val,
isEquip: true,
equipSlot: eqSlot,
})
@@ -55,7 +55,7 @@ func (g *Game) dropItemsOnDeath(p *player.Player) {
}
sort.Slice(items, func(i, j int) bool {
- return items[i].totalVal > items[j].totalVal
+ return items[i].totalValue > items[j].totalValue
})
for i := 3; i < len(items); i++ {