aboutsummaryrefslogtreecommitdiff
path: root/internal/player/player.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-14 22:38:23 -0400
committerhistoria <[not public]>2026-06-14 22:38:23 -0400
commita6f0ad79e2e3a5b7c11eef1ffc3233f3a2766f77 (patch)
tree89601a502bbfcb50302cf03f09b6febc6040eeb0 /internal/player/player.go
parent1aba2bdd23aebed4032333e74aa553c40a31fcbd (diff)
downloadthehouseoficarus-a6f0ad79e2e3a5b7c11eef1ffc3233f3a2766f77.tar.gz
feat: fractional ticks and server game_speed implemented. potentially insanely janky.
Diffstat (limited to 'internal/player/player.go')
-rw-r--r--internal/player/player.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/player/player.go b/internal/player/player.go
index 332656c..15521a3 100644
--- a/internal/player/player.go
+++ b/internal/player/player.go
@@ -107,7 +107,7 @@ type OptionDef struct {
var OptionDefs = []OptionDef{
{"description", OptBool, true, nil, "Long room descriptions when moving"},
{"tinymap", OptBool, true, nil, "Mini-map display"},
- {"left-tinymap", OptBool, false, nil, "Mini-map on left side of descriptions"},
+ {"left_tinymap", OptBool, false, nil, "Mini-map on left side of descriptions"},
{"xpdrops", OptBool, true, nil, "XP drop messages"},
{"exits", OptBool, true, nil, "Long exit display in look"},
{"mobenter", OptBool, true, nil, "Messages when mobs enter the room"},
@@ -121,6 +121,8 @@ var OptionDefs = []OptionDef{
{"mapheight", OptInt, 20, nil, "Map height for the map command"},
{"mappadding", OptString, "none", []string{"none", "x", "y", "xy"}, "Map output padding mode"},
{"automap", OptBool, false, nil, "Show map automatically after moving"},
+ {"queue_actions_silently", OptBool, true, nil, "Suppress 'You prepare to...' messages for queued actions"},
+ {"max_room_description_width", OptInt, 70, nil, "Maximum width for room descriptions"},
}
var optionByName map[string]*OptionDef
@@ -151,6 +153,7 @@ type Player struct {
Flags map[string]any `yaml:"flags"`
RegenerateTick int
Action *action.Action `yaml:"-"`
+ ActionState any `yaml:"-"`
}
func (p *Player) OptionBool(name string) bool {