mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-24 17:22:23 +00:00
* robot_module refactor * some fixes 1. adds medical stacks of 25 for the syndi medical borg 2. fixes various construction steps that weren't using `use()` or `get_amount()` * review tweaks + other stuff 1. Makes a bunch of for loops into istypeless loops 2. Adds a readout of the current out of stacks a borg has, in the status panel 3. Slightly reorganizes the medical, syndi medical, engineering and syndi engineering cyborgs items * fixes after upstream merge * blank line for travis * fixes and improvements 1. Fixed welder icon's not updating periodically if you were charging in a borg recharger 2. Fixes solar panels dropping /cyborg type glass when they were deconstructed. 3. Band-aid fix (incase #2 doesn't fix this) for cyborg stack's `source` var being null which resulted in tons of "cannot read null.energy" runtimes * more fixes + constructable frame runtime fix * removes toy sword placeholder remove comment * remove these as well * .amount to .get_amount(), really should have done this before * refactors robot_upgrades to work with the new system - more cleanup - adds documentation - fixed a bug I made where you could delete your robot stack via crafting * moves some unemag logic to the module file, makes more loops typless * farie review * fox review * affected review and more TM bugfixes * fixes comment Co-authored-by: SteelSlayer <SteelSlayer@users.noreply.github.com>
29 lines
722 B
Plaintext
29 lines
722 B
Plaintext
/obj/item/stack/light_w
|
|
name = "wired glass tiles"
|
|
gender = PLURAL
|
|
singular_name = "wired glass floor tile"
|
|
desc = "A glass tile, which is wired, somehow."
|
|
icon = 'icons/obj/tiles.dmi'
|
|
icon_state = "glass_wire"
|
|
w_class = WEIGHT_CLASS_NORMAL
|
|
force = 3.0
|
|
throwforce = 5.0
|
|
throw_speed = 5
|
|
throw_range = 20
|
|
flags = CONDUCT
|
|
max_amount = 60
|
|
|
|
/obj/item/stack/light_w/attackby(obj/item/I, mob/user, params)
|
|
..()
|
|
if(istype(I, /obj/item/wirecutters))
|
|
var/obj/item/stack/cable_coil/CC = new(user.loc)
|
|
CC.amount = 5
|
|
new/obj/item/stack/sheet/glass(user.loc)
|
|
use(1)
|
|
|
|
if(istype(I, /obj/item/stack/sheet/metal))
|
|
var/obj/item/stack/sheet/metal/M = I
|
|
M.use(1)
|
|
new /obj/item/stack/tile/light(user.loc)
|
|
use(1)
|