From 1dad15698845d370e998f7cc5feb8aece3fab58f Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 16 Sep 2026 17:05:17 -0400 Subject: refactor: remove dead code, consolidate save/error handling, add lint gate --- internal/game/act_gather.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/game/act_gather.go') diff --git a/internal/game/act_gather.go b/internal/game/act_gather.go index 447e23a..a1c87b9 100644 --- a/internal/game/act_gather.go +++ b/internal/game/act_gather.go @@ -239,7 +239,7 @@ func (g *Game) advanceGather(sess *net.Session, p *player.Player) { if xp > 0 { g.awardSkillXP(sess, p, player.SkillName(cfg.Skill), xp) } - g.AccountStore.SaveCharacter(p) + g.saveCharacter(p) msg := drop.SuccessMessage coloredName := g.itemColorize(sess, itemDef, itemName) @@ -452,6 +452,6 @@ func (g *Game) checkBirdNest(sess *net.Session, p *player.Player, cfg *behavior. } p.SetInvSlot(freeSlot, &player.InventorySlot{ItemID: birdsNestItemID, Quantity: 1}) - g.AccountStore.SaveCharacter(p) + g.saveCharacter(p) sess.WriteLine(fmt.Sprintf("A %s falls out of the tree!", nestName)) } -- cgit v1.2.3