Enforces nukies to wait at least 10 minutes after war before heading to station (#16115)

This commit is contained in:
Qwertytoforty
2021-06-17 05:32:59 -04:00
committed by GitHub
parent e64d8d9de2
commit 9e28cc0afe
2 changed files with 5 additions and 2 deletions
+4 -2
View File
@@ -12,6 +12,7 @@
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | ACID_PROOF
flags = NODECONSTRUCT
var/challenge = FALSE
var/challenge_time = 0 //When was war declared?
/obj/machinery/computer/shuttle/syndicate/recall
name = "syndicate shuttle recall terminal"
@@ -19,9 +20,10 @@
possible_destinations = "syndicate_away"
/obj/machinery/computer/shuttle/syndicate/can_call_shuttle(user, action)
var/time_to_go = max(SYNDICATE_CHALLENGE_TIMER, (challenge_time + 10 MINUTES))
if(action == "move")
if(challenge && world.time < SYNDICATE_CHALLENGE_TIMER)
to_chat(user, "<span class='warning'>You've issued a combat challenge to the station! You've got to give them at least [round(((SYNDICATE_CHALLENGE_TIMER - world.time) / 10) / 60)] more minutes to allow them to prepare.</span>")
if(challenge && world.time < time_to_go)
to_chat(user, "<span class='warning'>You've issued a combat challenge to the station! You've got to give them at least [round(((time_to_go - world.time) / 10) / 60)] more minutes to allow them to prepare.</span>")
return FALSE
return TRUE