- 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:
giacomand@gmail.com
2013-02-10 04:11:46 +00:00
parent 938d516593
commit c5510ba3a1
3 changed files with 5591 additions and 5593 deletions

View File

@@ -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

View File

@@ -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)