Connect physical elevators and staff commutes to construction, saves, and cutaway UI
This commit is contained in:
@@ -468,6 +468,12 @@ func demolish_facility(
|
||||
})
|
||||
|
||||
_facilities.erase(instance_id)
|
||||
# A completed construction job owns its live facility. Once demolition has
|
||||
# committed, retire both records so snapshots cannot retain an orphaned
|
||||
# COMPLETED job. Sequence counters and emitted domain events retain history.
|
||||
var source_job_id := StringName(instance.get(&"source_job_id", &""))
|
||||
_jobs.erase(source_job_id)
|
||||
_last_progress_minutes.erase(source_job_id)
|
||||
_mutation_in_progress = false
|
||||
facility_demolished.emit(instance_id, refund)
|
||||
return CommandResultType.succeeded(0, {
|
||||
|
||||
Reference in New Issue
Block a user