From 0b0b25222b3131ada79ff78c28eb8bf07d977deb Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 15 Sep 2026 15:35:52 -0400 Subject: feat: single-owner game state, transactional lifecycle, durable money on server stop --- internal/game/combat_attack.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/game/combat_attack.go') diff --git a/internal/game/combat_attack.go b/internal/game/combat_attack.go index 3544fcc..bd16999 100644 --- a/internal/game/combat_attack.go +++ b/internal/game/combat_attack.go @@ -193,7 +193,7 @@ func (g *Game) startCombat(sess *net.Session, p *player.Player, mob *world.MobIn g.broadcastAction(sess, "%s attacks %s!", p.Name, mobDisplayName(mob, true)) } - g.Ticks.Subscribe(1, func() bool { + g.SubscribeTicks(1, func() bool { cs := g.Combat.Get(p.Name) if cs == nil || !cs.Active { return false @@ -255,7 +255,7 @@ func (g *Game) startCombat(sess *net.Session, p *player.Player, mob *world.MobIn }) if !isTask { - g.Ticks.Subscribe(engine.ToTicks(mob.Speed), func() bool { + g.SubscribeTicks(engine.ToTicks(mob.Speed), func() bool { cs := g.Combat.Get(p.Name) if cs == nil || !cs.Active { return false -- cgit v1.2.3