diff --git a/code/game/objects/items/stacks/stack.dm b/code/game/objects/items/stacks/stack.dm index f80ec37a5cf..f64f19ef4cf 100644 --- a/code/game/objects/items/stacks/stack.dm +++ b/code/game/objects/items/stacks/stack.dm @@ -183,6 +183,8 @@ return 1 /obj/item/stack/proc/zero_amount() + if(is_cyborg) + return source.energy < cost if (amount < 1) if(usr) usr.unEquip(src, 1) diff --git a/code/game/turfs/simulated/floor/plating.dm b/code/game/turfs/simulated/floor/plating.dm index d09fd62b222..d92217983db 100644 --- a/code/game/turfs/simulated/floor/plating.dm +++ b/code/game/turfs/simulated/floor/plating.dm @@ -48,12 +48,13 @@ else if(istype(C, /obj/item/stack/tile)) if(!broken && !burnt) var/obj/item/stack/tile/W = C + if(!W.use(1)) + return var/turf/simulated/floor/T = ChangeTurf(W.turf_type) if(istype(W,/obj/item/stack/tile/light)) //TODO: get rid of this ugly check somehow var/obj/item/stack/tile/light/L = W var/turf/simulated/floor/light/F = T F.state = L.state - W.use(1) playsound(src, 'sound/weapons/Genhit.ogg', 50, 1) else user << "This section is too damaged to support a tile! Use a welder to fix the damage."