aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_estate_directory.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-16 21:35:55 -0400
committerhistoria <[not public]>2026-09-16 21:35:55 -0400
commitfea2cc6839ec3ee17940a2dea69622dc6f4deabf (patch)
tree9d893525ca20d2cc920e9e866f84f71b605d8ae9 /internal/game/cmd_estate_directory.go
parent35ddd0ad2215760bb1d3dc7724480f179ea33fa6 (diff)
downloadthehouseoficarus-fea2cc6839ec3ee17940a2dea69622dc6f4deabf.tar.gz
fix: unify crafting ingredient resolution; fix superheat alternatives, quantity gates, and dropped combine byproducts
Diffstat (limited to 'internal/game/cmd_estate_directory.go')
-rw-r--r--internal/game/cmd_estate_directory.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/game/cmd_estate_directory.go b/internal/game/cmd_estate_directory.go
index fc79e6c..3da2c18 100644
--- a/internal/game/cmd_estate_directory.go
+++ b/internal/game/cmd_estate_directory.go
@@ -71,7 +71,7 @@ func (g *Game) showEstateDirectoryTalk(sess *net.Session, p *player.Player, home
sess.WriteLine("")
sess.WriteLine(" You are a registered homeowner in this neighborhood.")
sess.WriteLine(" Type 'enter' to go to your house, or 'leave' to step away.")
- sess.State = net.StateTalk
+ sess.SetState(net.StateTalk)
p.Action = &behavior.Action{
Type: "talk",
TargetID: "estate_directory",
@@ -101,12 +101,12 @@ func (g *Game) handleEstateDirectoryTalk(sess *net.Session, input string) {
}
houseRoom := g.getOwnedHouseRoom(p, "owns_house_local_neighborhood")
if houseRoom > 0 {
- sess.State = net.StateGame
+ sess.SetState(net.StateGame)
p.Action = nil
g.teleportPlayer(sess, p, houseRoom)
return
}
- sess.State = net.StateGame
+ sess.SetState(net.StateGame)
p.Action = nil
g.writePrompt(sess)
case "leave", "bye", "exit", "quit":
@@ -114,7 +114,7 @@ func (g *Game) handleEstateDirectoryTalk(sess *net.Session, input string) {
if p != nil {
p.Action = nil
}
- sess.State = net.StateGame
+ sess.SetState(net.StateGame)
g.writePrompt(sess)
default:
sess.WriteLine("Type 'enter' to go to your house, or 'leave' to step away.")