- Fixed some bugs with traffic computer. Added some more functions for NTSL, which I think will really expand the functionality of it. time() will return the time in the number variable, timestamp(format) will return it in string.

- Increased the allowed w_class things in secure briefcases. Equalized the amount of stuff you can put in a briefcase with the backpack.
 - The staff of animation will turn animations onto their side, if they were created by a different user.


git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5658 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
giacomand@gmail.com
2013-02-06 10:33:29 +00:00
parent 9d184174a0
commit 87b611aec0
9 changed files with 30 additions and 4 deletions

View File

@@ -177,6 +177,9 @@
interpreter.SetProc("inrange", /proc/n_inrange)
// End of Donkie~
// Time
interpreter.SetProc("time", /proc/time)
interpreter.SetProc("timestamp", /proc/timestamp)
// Run the compiled code
interpreter.Run()

View File

@@ -134,6 +134,12 @@
if(istext(string))
return uppertext(string)
/proc/time()
return world.realtime
/proc/timestamp(var/format = "hh:mm:ss") // Get the game time in text
return time2text(world.time + 432000, format)
/*
//Makes a list where all indicies in a string is a seperate index in the list
// JUST A HELPER DON'T ADD TO NTSCRIPT