From 69d8757ad983697cdc9182fdcc1cdb612a77fb41 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 10 Jun 2026 04:44:31 -0400 Subject: feat: yaml architecture for complex object interaction --- internal/game/session.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/game/session.go') 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) -- cgit v1.2.3