Contract QoL and fixes (#44705)

* QoL and location bugfix

* QoL and bugfixes

* Further fixes

* Name fix

* Text changes

* revert delay

* Same fix for returning

* description update

* New TC generation

* Slight delay for ransom cut, so they can hear the beep

* Give a written guide

* Third item

Alright I'm sold, let's try it

* Forgot to add text changes in line with the new item

* Merge conflict

* In datum
This commit is contained in:
Akrilla
2019-06-22 18:13:06 +01:00
committed by AnturK
parent 96d1e16f36
commit eba239656f
10 changed files with 174 additions and 62 deletions
@@ -39,7 +39,9 @@
// contract system.
// We also create their contracts at this point.
if (traitor_data)
traitor_data.create_contracts()
// We don't give them more contracts if they somehow assign themselves to a new uplink.
if (!traitor_data.assigned_contracts.len)
traitor_data.create_contracts()
hard_drive.traitor_data = traitor_data
else
error = "Incorrect login details."
@@ -47,7 +49,7 @@
if("PRG_call_extraction")
if (hard_drive.traitor_data.current_contract.status != CONTRACT_STATUS_EXTRACTING)
if (hard_drive.traitor_data.current_contract.handle_extraction(user))
user.playsound_local(user, 'sound/effects/confirmdropoff.ogg', 75, 1)
user.playsound_local(user, 'sound/effects/confirmdropoff.ogg', 100, 1)
hard_drive.traitor_data.current_contract.status = CONTRACT_STATUS_EXTRACTING
else
user.playsound_local(user, 'sound/machines/uplinkerror.ogg', 50)