feat: add protected tourist encounters

This commit is contained in:
goose
2026-10-04 11:48:20 -04:00
parent e8082b3ca6
commit 5ef08a6e33
14 changed files with 361 additions and 1 deletions
+2
View File
@@ -5,6 +5,7 @@ const DeterministicRngType = preload("res://scripts/domain/run/deterministic_rng
const ActorStateType = preload("res://scripts/domain/actor_state.gd")
const GridMapStateType = preload("res://scripts/domain/grid_map_state.gd")
const SpawnRulesType = preload("res://scripts/domain/world/spawn_rules.gd")
const TouristServiceType = preload("res://scripts/domain/world/tourist_service.gd")
static func populate(floor: FloorState, catalog: ContentCatalog, population_seed: String) -> void:
_clear_population(floor)
@@ -32,6 +33,7 @@ static func populate(floor: FloorState, catalog: ContentCatalog, population_seed
serial = _spawn_bobka(floor, catalog, room, rng, occupied, serial)
&"narrative", &"mystery", &"puzzle":
_spawn_event(floor, catalog, room, rng, occupied)
TouristServiceType.try_spawn(floor, catalog, rng)
static func _clear_population(floor: FloorState) -> void:
floor.enemies.clear()