aboutsummaryrefslogtreecommitdiff
path: root/internal/game/login_account.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/login_account.go')
-rw-r--r--internal/game/login_account.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/game/login_account.go b/internal/game/login_account.go
index 176a1ee..87f8c62 100644
--- a/internal/game/login_account.go
+++ b/internal/game/login_account.go
@@ -17,7 +17,7 @@ func (g *Game) handleAccountName(sess *net.Session, input string) {
}
actualName, err := g.AccountStore.FindAccount(name)
if err == nil {
- sess.Account = &net.AccountEntry{Name: actualName}
+ sess.Account = &player.Account{Name: actualName}
sess.State = net.StatePassword
sess.Conn.SetEcho(false)
sess.Write("Password: ")
@@ -27,7 +27,7 @@ func (g *Game) handleAccountName(sess *net.Session, input string) {
sess.Write("Account name: ")
return
}
- sess.Account = &net.AccountEntry{Name: name}
+ sess.Account = &player.Account{Name: name}
sess.State = net.StateNewAccountPass
sess.Conn.SetEcho(false)
sess.WriteLine("\r\nOh, a new visitor to this rock!")
@@ -63,7 +63,7 @@ func (g *Game) handlePassword(sess *net.Session, input string) {
return
}
sess.Conn.SetEcho(true)
- sess.Account = &net.AccountEntry{
+ sess.Account = &player.Account{
Name: acc.Name,
PasswordHash: acc.PasswordHash,
Characters: acc.Characters,
@@ -144,7 +144,7 @@ func (g *Game) handleNewAccountConfirm(sess *net.Session, input string) {
}
sess.Conn.SetEcho(true)
- sess.Account = &net.AccountEntry{
+ sess.Account = &player.Account{
Name: acc.Name,
PasswordHash: acc.PasswordHash,
Aliases: make(map[string]string),