mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-23 16:16:58 +01:00
- separates the composition of cyborgs into modules, iconsets, chassis, upgrades - modules / chassis atm can provide items, so can upgrades; in the future we will want to probably generalize the item API a bit so components can work - chassis now can (unimplemented) easily be made to give different stats - reorganizes all the cyborg sprites - adds generalized item mounts with redirection support and tears out legacy cyborg items - entirely rebalances modules & writes some new lawsets in for future use --------- Co-authored-by: silicons <silicons@silicons.dev>
20 lines
790 B
Plaintext
20 lines
790 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/Initialize(mapload)
|
|
. = ..()
|
|
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.
|
|
return INITIALIZE_HINT_QDEL
|
|
|
|
/obj/fiftyspawner/rods
|
|
name = "stack of rods" //this needs to be defined for cargo
|
|
type_to_spawn = /obj/item/stack/rods
|