Files
VOREStation/code/_helpers/generators.dm
Selis 47564346fb View Variables Update (2) (#17946)
* Begin

* Begin 2

* move to tsx

* fix that UI

* fix gib

* bunch of fixes

* fix this one

* Nicer ahelp bot text formatting

* clean up all inputs

* .

* fix MC tab

* fix ore spawn

* with rare

* More filter stuff

* Cleaned up world

* Fix

* ummm

* .

* fix that

* .

* Begin

* Begin 2

* move to tsx

* fix that UI

* fix gib

* bunch of fixes

* fix this one

* clean up all inputs

* Nicer ahelp bot text formatting

* .

* fix MC tab

* fix ore spawn

* with rare

* More filter stuff

* Cleaned up world

* Fix

* Added missing props

* useContext fix

* .

---------

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
2025-07-05 23:01:00 +02:00

12 lines
643 B
Plaintext

/**
* returns the arguments given to a generator and manually extracts them from the internal byond object
* returns:
* * flat list of strings for args given to the generator.
* * Note: this means things like "list(1,2,3)" will need to be processed
*/
/proc/return_generator_args(generator/target)
var/string_repr = "[target]" //the name of the generator is the string representation of its _binobj, which also contains its args
string_repr = copytext(string_repr, 11, length(string_repr)) // strips extraneous data
string_repr = replacetext(string_repr, "\"", "") // removes the " around the type
return splittext(string_repr, ", ")