aboutsummaryrefslogtreecommitdiff
path: root/internal/player/player.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/player/player.go')
-rw-r--r--internal/player/player.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/internal/player/player.go b/internal/player/player.go
index ac2c8ce..ebba376 100644
--- a/internal/player/player.go
+++ b/internal/player/player.go
@@ -138,7 +138,7 @@ var OptionDefs = []OptionDef{
{"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)"},
+ {"safespot_alert", OptString, "{196 bold}** Your safespot has been compromised! **{/}", nil, "Message shown when forced out of a safespot"},
}
var optionByName map[string]*OptionDef
@@ -191,9 +191,15 @@ type Player struct {
Sneaking bool `yaml:"-"`
SneakNotified map[string]bool `yaml:"-"`
ActiveBuffs []PotionBuff `yaml:"-"`
+ MapSymbols map[int]MapSymbolData `yaml:"map_symbols,omitempty"`
Stats PlayerStats `yaml:"stats"`
}
+type MapSymbolData struct {
+ Char string `yaml:"char"`
+ Color string `yaml:"color,omitempty"`
+}
+
type PotionBuff struct {
Stat string
BonusPercent int
@@ -314,6 +320,7 @@ func New(name string) *Player {
AttackStyle: Accurate,
Prompt: "> ",
RoomID: 0,
+ MapSymbols: make(map[int]MapSymbolData),
Stats: PlayerStats{
RoomsVisited: make(map[int]bool),
MobKills: make(map[string]int),