aboutsummaryrefslogtreecommitdiff
path: root/internal/game/session.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-10 04:44:31 -0400
committerhistoria <[not public]>2026-06-10 04:44:31 -0400
commit69d8757ad983697cdc9182fdcc1cdb612a77fb41 (patch)
tree348c26d1f6defe3aef64f5aa9e7cefed0e764214 /internal/game/session.go
parenta226d72e51eecb768b13600303f73483118d9104 (diff)
downloadthehouseoficarus-69d8757ad983697cdc9182fdcc1cdb612a77fb41.tar.gz
feat: yaml architecture for complex object interaction
Diffstat (limited to 'internal/game/session.go')
-rw-r--r--internal/game/session.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/game/session.go b/internal/game/session.go
index edc904d..7fe45e7 100644
--- a/internal/game/session.go
+++ b/internal/game/session.go
@@ -49,6 +49,10 @@ func (g *Game) handlePassword(sess *net.Session, input string) {
Name: acc.Name,
PasswordHash: acc.PasswordHash,
Characters: acc.Characters,
+ Aliases: acc.Aliases,
+ }
+ if sess.Account.Aliases == nil {
+ sess.Account.Aliases = make(map[string]string)
}
g.showMenu(sess)
}
@@ -106,6 +110,7 @@ func (g *Game) handleNewAccountConfirm(sess *net.Session, input string) {
sess.Account = &net.AccountEntry{
Name: acc.Name,
PasswordHash: acc.PasswordHash,
+ Aliases: make(map[string]string),
}
sess.PendingPass = ""
g.showMenu(sess)