mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
DisplayTimeText mk2 (#30969)
* Adds new helper, DisplayTimeText * Removed unused define Thought it would've been nice to have for the future, but I guess it's fine to go without it. * CBB * Revamp * Early returns * More cleanup * Proc cleanup * Makes fraction only show if seconds is < 1 * Last cleanup * Revert * Corrected incorrect round time. Dunno how nobody ever caught that it was incorrect on live servers, gg.
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
if(href_list["move"])
|
||||
var/obj/item/circuitboard/computer/syndicate_shuttle/board = circuit
|
||||
if(board.challenge && world.time < SYNDICATE_CHALLENGE_TIMER)
|
||||
to_chat(usr, "<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>")
|
||||
to_chat(usr, "<span class='warning'>You've issued a combat challenge to the station! You've got to give them at least [DisplayTimeText(SYNDICATE_CHALLENGE_TIMER - world.time)] more to allow them to prepare.</span>")
|
||||
return 0
|
||||
board.moved = TRUE
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user