mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Say woo for first commit!
- The alarm needed some more userfriendlyness: * Spelling sorted * Turning off PANIC SYPHON now sets scrubbers to scrubbing (default) instead of off. * Instead of the stupid timeout and VENT NOT FOUND HURRDURR they will just get removed from the list. They were clogging that vent list up as fuck * Vents pressure settings now have an extra href which resets the vent to ONE_ATMOSPHERE kPa (101.32 or whatever it is) - The "Outlet position is obstructed" error message when opening exofab now only appears if the turf to south is obstructed, not to east like before. - AI Modules use attack_self instead of attack_hand - Fixed chatspam with reverse() and made the explode function use the builtin ss13 one instead of my custom, it proved to be faster. - Added my self to the changelog, because I can! git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3367 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -134,7 +134,7 @@
|
||||
if(istext(string))
|
||||
return uppertext(string)
|
||||
|
||||
|
||||
/*
|
||||
//Makes a list where all indicies in a string is a seperate index in the list
|
||||
// JUST A HELPER DON'T ADD TO NTSCRIPT
|
||||
proc/string_tolist(var/string)
|
||||
@@ -150,7 +150,6 @@ proc/string_explode(var/string, var/separator)
|
||||
if(istext(string))
|
||||
if(istext(separator) && separator == "")
|
||||
return string_tolist(string)
|
||||
|
||||
var/i
|
||||
var/lasti = 1
|
||||
var/list/L = new/list()
|
||||
@@ -164,6 +163,12 @@ proc/string_explode(var/string, var/separator)
|
||||
|
||||
return L
|
||||
|
||||
Just found out there was already a string explode function, did some benchmarking, and that function were a bit faster, sticking to that.
|
||||
*/
|
||||
proc/string_explode(var/string, var/separator)
|
||||
if(istext(string))
|
||||
return dd_text2list(string, separator)
|
||||
|
||||
proc/n_repeat(var/string, var/amount)
|
||||
if(istext(string) && isnum(amount))
|
||||
var/i
|
||||
@@ -178,7 +183,6 @@ proc/n_reverse(var/string)
|
||||
var/newstring = ""
|
||||
var/i
|
||||
for(i=lentext(string), i>0, i--)
|
||||
world << copytext(string, i, i+1)
|
||||
newstring = newstring + copytext(string, i, i+1)
|
||||
|
||||
return newstring
|
||||
|
||||
Reference in New Issue
Block a user