mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-06 15:32:52 +00:00
Ports most of /tg/'s sprites for stacks displaying their contents. I added some of my own as well to fill in materials that we have but they didn't. Moves all stack icons to their own dmi. Reworks fifty_spawners to use paths instead of strings, as it prevents bugs in the long term.
21 lines
849 B
Plaintext
21 lines
849 B
Plaintext
//50-stacks as their own type was too buggy, we're doing it a different way
|
|
/obj/fiftyspawner //this doesn't need to do anything but make the stack and die so it's light
|
|
name = "50-stack spawner"
|
|
desc = "This item spawns stack of 50 of a given material."
|
|
icon = 'icons/misc/mark.dmi'
|
|
icon_state = "x4"
|
|
// var/material = ""
|
|
var/obj/item/stack/type_to_spawn = null
|
|
|
|
/obj/fiftyspawner/New()
|
|
//spawns the 50-stack and qdels self
|
|
..()
|
|
// var/obj_path = text2path("/obj/item/stack/[material]")
|
|
var/obj/item/stack/M = new type_to_spawn(src.loc)
|
|
M.amount = M.max_amount //some stuff spawns with 60, we're still calling it fifty
|
|
M.update_icon() // Some stacks have different sprites depending on how full they are.
|
|
qdel(src)
|
|
|
|
/obj/fiftyspawner/rods
|
|
name = "stack of rods" //this needs to be defined for cargo
|
|
type_to_spawn = /obj/item/stack/rods |