diff options
Diffstat (limited to 'internal/game/action_gather.go')
| -rw-r--r-- | internal/game/action_gather.go | 9 |
1 files changed, 7 insertions, 2 deletions
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) |
