From b6fdde0aa6fcefd735e7c550aaa7fca879023f1c Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 15 Jun 2026 00:03:55 -0400 Subject: feat: unicode option, fixed up options and tables --- internal/game/action_gather.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'internal/game/action_gather.go') diff --git a/internal/game/action_gather.go b/internal/game/action_gather.go index 512be81..4e1e609 100644 --- a/internal/game/action_gather.go +++ b/internal/game/action_gather.go @@ -138,7 +138,12 @@ func (g *Game) startGather(sess *net.Session, p *player.Player, obj *object.Obje } } } - p.ActionState = &ActionState{Type: ActionGathering, TargetName: obj.Name, ToolName: toolName} + verb := cfg.Skill + switch cfg.Skill { + case "woodcutting": + verb = "chopping" + } + p.ActionState = &ActionState{Type: ActionGathering, TargetName: obj.Name, ToolName: toolName, Verb: verb} data := map[string]any{ "behavior_id": obj.BehaviorID, @@ -257,7 +262,7 @@ func (g *Game) advanceGather(sess *net.Session, p *player.Player) { if msg == "" { msg = fmt.Sprintf("You manage to get some %s.", itemName) } - if xp > 0 && p.OptionBool("xpdrops") { + if xp > 0 && p.OptionBool("xp_drops") { msg += fmt.Sprintf(" (+%dxp %s)", xp, player.SkillAbbr[player.SkillName(cfg.Skill)]) } sess.WriteLine(msg) -- cgit v1.2.3