aboutsummaryrefslogtreecommitdiff
path: root/internal/game/action_state.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-15 00:03:55 -0400
committerhistoria <[not public]>2026-06-15 00:03:55 -0400
commitb6fdde0aa6fcefd735e7c550aaa7fca879023f1c (patch)
tree924be72a906522d60512213cdbaba1f55e694bd3 /internal/game/action_state.go
parenteb37418b933d7bd996658209e867ea3f3e3806ec (diff)
downloadthehouseoficarus-b6fdde0aa6fcefd735e7c550aaa7fca879023f1c.tar.gz
feat: unicode option, fixed up options and tables
Diffstat (limited to 'internal/game/action_state.go')
-rw-r--r--internal/game/action_state.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/game/action_state.go b/internal/game/action_state.go
index fba5319..8db4a7b 100644
--- a/internal/game/action_state.go
+++ b/internal/game/action_state.go
@@ -25,6 +25,7 @@ type ActionState struct {
TargetName string
ToolName string
Direction string
+ Verb string
}
func (a *ActionState) Description() string {
@@ -33,7 +34,11 @@ func (a *ActionState) Description() string {
}
switch a.Type {
case ActionGathering:
- return "mining a " + a.TargetName
+ desc := a.Verb + " a " + a.TargetName
+ if a.ToolName != "" {
+ desc += " with a " + a.ToolName
+ }
+ return desc
case ActionCombating:
return "fighting a " + a.TargetName
case ActionMoving: