aboutsummaryrefslogtreecommitdiff
path: root/internal/game/act_effects.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-31 17:44:10 -0400
committerhistoria <[not public]>2026-07-31 17:44:10 -0400
commitf51424c90dbce7191a31b6e675818c985f0f4539 (patch)
treea7845a2e09bd6e83d2d034f5e702a4940f38126a /internal/game/act_effects.go
parent58758d41488a777d2bc0e787be655363bdd9eb60 (diff)
downloadthehouseoficarus-f51424c90dbce7191a31b6e675818c985f0f4539.tar.gz
feat: casino framework and basic slot machine
Diffstat (limited to 'internal/game/act_effects.go')
-rw-r--r--internal/game/act_effects.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/game/act_effects.go b/internal/game/act_effects.go
index cadd05e..d1effac 100644
--- a/internal/game/act_effects.go
+++ b/internal/game/act_effects.go
@@ -177,7 +177,12 @@ func (g *Game) applyStep(sess *net.Session, p *player.Player, step *behavior.Ste
}
}
- // 11/12. spawn_mob / despawn_mob (player-owned / owner-filtered).
+ // 11. casino game join. The table is resolved from the player's current room.
+ if step.StartGame != "" {
+ g.startCasinoGame(sess, p, step.StartGame)
+ }
+
+ // 12/13. spawn_mob / despawn_mob (player-owned / owner-filtered).
if step.SpawnMob != nil {
g.spawnTriggerMob(sess, p, step.SpawnMob, roomID)
}