(Hopefully) Stops cryopodded contract targets from breaking contractor uplinks (#59742)

This PR aims to stop contractor uplinks from breaking due to having a target cryopod. When a contract target enters cryosleep, it now manually rerolls the contract.

This PR is admittedly somewhat bandaid-y, as contractors are slotted for removal soon, apparently.
This commit is contained in:
MrMelbert
2021-06-20 16:40:27 -05:00
committed by GitHub
parent f9767a23ab
commit b5237254c4
2 changed files with 16 additions and 2 deletions
@@ -165,6 +165,11 @@
))
for (var/datum/syndicate_contract/contract in traitor_data.contractor_hub.assigned_contracts)
if(!contract.contract)
stack_trace("Syndiate contract with null contract objective found in [traitor_data.owner]'s contractor hub!")
contract.status = CONTRACT_STATUS_ABORTED
continue
data["contracts"] += list(list(
"target" = contract.contract.target,
"target_rank" = contract.target_rank,