/tg/ Station 13 - Modules - Types

code/game/objects/items/stacks/cash.dm

/proc/credits_to_spacecashTakes an amount of credit and returns a list of space cash typepaths that are equivalent to that amount. For example, if you passed 450 credits, it would return a list with a c200, another c200, and a c50 space cash stack typepath. You can then use the list to new() all the types provided if you wanted to give a player that amount in space cash.