mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-17 21:24:01 +00:00
- Added rand() to the NTSL list of functions.
- Re-added intercoms for the pods and an intercom in the shuttle's public area. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5680 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -175,6 +175,7 @@
|
||||
interpreter.SetProc("round", /proc/n_round)
|
||||
interpreter.SetProc("clamp", /proc/n_clamp)
|
||||
interpreter.SetProc("inrange", /proc/n_inrange)
|
||||
interpreter.SetProc("rand", /proc/rand_chance)
|
||||
// End of Donkie~
|
||||
|
||||
// Time
|
||||
|
||||
@@ -94,6 +94,10 @@
|
||||
/proc/delay(var/time)
|
||||
sleep(time)
|
||||
|
||||
// Clone of rand()
|
||||
/proc/rand_chance(var/low = 0, var/high)
|
||||
return rand(low, high)
|
||||
|
||||
// Clone of prob()
|
||||
/proc/prob_chance(var/chance)
|
||||
return prob(chance)
|
||||
@@ -135,7 +139,7 @@
|
||||
return uppertext(string)
|
||||
|
||||
/proc/time()
|
||||
return world.realtime
|
||||
return world.timeofday
|
||||
|
||||
/proc/timestamp(var/format = "hh:mm:ss") // Get the game time in text
|
||||
return time2text(world.time + 432000, format)
|
||||
|
||||
Reference in New Issue
Block a user