mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-20 15:21:29 +00:00
* I AM NOT A KING. I AM NOT A GOD. I AM LUNACY. * THE SCOPE CREEP * This was done in vi. No langserver. Send help. * Progress * Some issues fixed * The code builds, but the maps dont * CC builds, I doubt anything else does * Do this now * Safety * The map compiles * THE MAPPING HELL * Airlock controllers dont work * Fixed bombs * AND THATS FIXED * Phantom edit * Restores LL I think * The mapmerge hooks are actually retarded * Fixes spawners * Half working air control * Picky * Hyper efficient tank monitor * Sanity * Laying the framework * Improved alert console * Dont think this is actually done anywhere * Metering * ONE HUNDRED AND ~~EIGHTY~~ TWENTY SEVEN * WE ARE READY FOR BOX TO BUILD * One map done * Well that was easy * Another one * I think this is done * I should have removed this * I would make a russian joke but <current event> * Delta WIP * Makes delta work * Early review * TM safeguard * oops * METAAAAAAAAAAAAAAAAAAAAAAAAA * Fix #4213 * Trailing * oh for piss sake * Shutter fix * Roundstart ATs can go away * Review pass 1 * What could go wrong * BOOM BOOM BOOM * Not needed * Fix seed vault * Oops * Review changes
43 lines
710 B
Plaintext
43 lines
710 B
Plaintext
/*
|
|
* Experimental procs by ESwordTheCat!
|
|
*/
|
|
|
|
/*
|
|
* Get index of last char occurence to string.
|
|
*
|
|
* @args
|
|
* A, string to be search
|
|
* B, char used for search
|
|
*
|
|
* @return
|
|
* >0, index of char at string
|
|
* 0, char not found
|
|
* -1, parameter B is not a char
|
|
* -2, parameter A is not a string
|
|
*/
|
|
/proc/strpos(const/A, const/B)
|
|
if(istext(A) == 0 || length(A) < 1)
|
|
return -2
|
|
|
|
if(istext(B) == 0 || length(B) > 1)
|
|
return -1
|
|
|
|
var/i = findtext(A, B)
|
|
|
|
if(0 == i)
|
|
return 0
|
|
|
|
while(i)
|
|
. = i
|
|
i = findtext(A, B, i + 1)
|
|
|
|
/proc/isInTypes(atom/Object, types)
|
|
var/prototype = Object.type
|
|
Object = null
|
|
|
|
for(var/type in params2list(types))
|
|
if(ispath(prototype, text2path(type)))
|
|
return 1
|
|
|
|
return 0
|