aboutsummaryrefslogtreecommitdiff
path: root/internal/player
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-21 22:19:17 -0400
committerhistoria <[not public]>2026-06-21 22:19:17 -0400
commita3ae1e6aad696f584d138d9363c05dedff136a65 (patch)
tree81e615f7227bc9d1ec79ceefc7311ecde917b074 /internal/player
parent84072ffe6365ad57c4976e9272762aa6db41de7e (diff)
downloadthehouseoficarus-a3ae1e6aad696f584d138d9363c05dedff136a65.tar.gz
feat: safespot system implemented
Diffstat (limited to 'internal/player')
-rw-r--r--internal/player/player.go8
-rw-r--r--internal/player/store.go4
2 files changed, 5 insertions, 7 deletions
diff --git a/internal/player/player.go b/internal/player/player.go
index 7953691..ac2c8ce 100644
--- a/internal/player/player.go
+++ b/internal/player/player.go
@@ -120,9 +120,9 @@ var OptionDefs = []OptionDef{
{"depletion", OptBool, false, nil, "Show depletion and despawn timers"},
{"despawn", OptBool, false, nil, "Show ground item despawn timers"},
{"color", OptString, "xterm256", []string{"none", "ansi", "xterm256"}, "Color output mode"},
- {"mapwidth", OptInt, 30, nil, "Map width for the map command"},
- {"mapheight", OptInt, 20, nil, "Map height for the map command"},
- {"mappadding", OptString, "none", []string{"none", "x", "y", "xy"}, "Map output padding mode"},
+ {"map_width", OptInt, 30, nil, "Map width for the map command"},
+ {"map_height", OptInt, 20, nil, "Map height for the map command"},
+ {"map_padding", OptString, "none", []string{"none", "x", "y", "xy"}, "Map output padding mode"},
{"automap", OptBool, false, nil, "Show map automatically after moving"},
{"queue_silently", OptBool, true, nil, "Suppress messages for queued tick actions"},
{"room_desc_width", OptInt, 70, nil, "Maximum width for room descriptions"},
@@ -137,6 +137,8 @@ var OptionDefs = []OptionDef{
{"smelt_all", OptBool, false, nil, "Auto-start smelting when only one product is possible"},
{"mix_all", OptBool, false, nil, "Auto-start mixing when only one product is possible"},
{"construct_all", OptBool, false, nil, "Auto-start constructing when only one product is possible"},
+ {"craft_all", OptBool, false, nil, "Auto-start crafting when only one product is possible"},
+ {"safespot_alert", OptString, "{196 bold}** Your safespot has been compromised! **{/}", nil, "Message shown when forced out of a safespot (set to \"none\" to disable)"},
}
var optionByName map[string]*OptionDef
diff --git a/internal/player/store.go b/internal/player/store.go
index c05b29d..04af594 100644
--- a/internal/player/store.go
+++ b/internal/player/store.go
@@ -89,10 +89,6 @@ func (s *AccountStore) LoadCharacter(name string) (*Player, error) {
if p.Skills == nil {
p.Skills = make(map[SkillName]int)
}
- if xp, ok := p.Skills["alchemy"]; ok {
- p.Skills[Pharmacy] = xp
- delete(p.Skills, "alchemy")
- }
if p.Equipment == nil {
p.Equipment = make(map[object.EquipSlot]string)
}