From a3ae1e6aad696f584d138d9363c05dedff136a65 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sun, 21 Jun 2026 22:19:17 -0400 Subject: feat: safespot system implemented --- internal/player/player.go | 8 +++++--- internal/player/store.go | 4 ---- 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'internal/player') 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) } -- cgit v1.2.3