Files
49daf536b5 [MIRROR] [BOUNTY] Re-adds Contractors [MDB IGNORE] (#25094)
* [BOUNTY] Re-adds Contractors

* I hate copy pasted overrides so much. BEGONE

* Fixes the merge conflict. It's still not gonna work, too many proc redefinition

* The sheer amount of overrides

* This is hell

* remove modular copy of spawn_contractor_partner

* part 2 of spawn_contractor_partner oops

* un-duplicate create_contracts proc

* Remove duplicate contract generate and finish_enter

* something to make the linter stop crying

* Receiving

* removes our contractor stuff in favour of parity

* Update SyndicateContractor.tsx

---------

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
Co-authored-by: Giz <13398309+vinylspiders@users.noreply.github.com>
Co-authored-by: GoldenAlpharex <jerego1234@hotmail.com>
Co-authored-by: Funce <funce.973@gmail.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
2023-12-24 22:00:55 +00:00

32 lines
1.3 KiB
Plaintext

/obj/structure/closet/supplypod/extractionpod
var/datum/contractor_hub/contract_hub
var/datum/syndicate_contract/tied_contract
var/receiving = FALSE
/obj/structure/closet/supplypod/extractionpod/Destroy()
if(!receiving)
return ..()
to_chat(tied_contract.contract.owner, "<BR>[span_userdanger("Extraction pod destroyed. Contract aborted.")]")
var/contract_id = tied_contract.id
if (contract_hub.current_contract == tied_contract)
contract_hub.current_contract = null
tied_contract = null
contract_hub.assigned_contracts[contract_id].status = CONTRACT_STATUS_ABORTED
if (contract_hub.current_contract == tied_contract)
contract_hub.current_contract = null
contract_hub = null
return ..()
/obj/structure/closet/supplypod/extractionpod/Moved(atom/old_loc, movement_dir, forced, list/old_locs, momentum_change = TRUE)
if(receiving && (atom_integrity <= 0))
to_chat(tied_contract.contract.owner, "<BR>[span_userdanger("Extraction pod destroyed. Contract aborted.")]")
var/contract_id = tied_contract.id
if (contract_hub.current_contract == tied_contract)
contract_hub.current_contract = null
tied_contract = null
contract_hub.assigned_contracts[contract_id].status = CONTRACT_STATUS_ABORTED
if (contract_hub.current_contract == tied_contract)
contract_hub.current_contract = null
contract_hub = null
return ..()