diff options
Diffstat (limited to 'internal/player')
| -rw-r--r-- | internal/player/account.go | 1 | ||||
| -rw-r--r-- | internal/player/doc.go | 14 | ||||
| -rw-r--r-- | internal/player/player.go | 2 |
3 files changed, 2 insertions, 15 deletions
diff --git a/internal/player/account.go b/internal/player/account.go index 679c5bc..36fab43 100644 --- a/internal/player/account.go +++ b/internal/player/account.go @@ -5,4 +5,5 @@ type Account struct { PasswordHash string `yaml:"password_hash"` Characters []string `yaml:"characters"` Aliases map[string]string `yaml:"aliases"` + Colors map[string]string `yaml:"colors"` } diff --git a/internal/player/doc.go b/internal/player/doc.go deleted file mode 100644 index a163bd7..0000000 --- a/internal/player/doc.go +++ /dev/null @@ -1,14 +0,0 @@ -// Package player defines character data, skills, equipment, inventory, -// and account management for the game. -// -// The Player struct is the full character sheet: 23 skills with RSC-style -// XP progression, 28-slot inventory, 11-slot equipment, combat level -// calculation, and death mechanics. -// -// Accounts store authentication (salted sha256 passwords), character lists, -// and command aliases. Validation functions enforce name and password rules. -// The AccountStore manages persistence to YAML files under data/players/. -// -// Player options (15 settings) support bool, string, and int types with -// defined defaults and valid values. -package player diff --git a/internal/player/player.go b/internal/player/player.go index 47c2c37..4a6f065 100644 --- a/internal/player/player.go +++ b/internal/player/player.go @@ -115,7 +115,7 @@ var OptionDefs = []OptionDef{ {"reserve", OptBool, true, nil, "Show full reserved item details"}, {"depletion", OptBool, false, nil, "Show depletion and despawn timers"}, {"despawn", OptBool, false, nil, "Show ground item despawn timers"}, - {"color", OptString, "none", []string{"none", "ansi", "xterm256"}, "Color output mode"}, + {"color", OptString, "ansi", []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"}, |
