mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
Merge pull request #9458 from xxalpha/cyborgtiles
Fixed cyborg floor tiles being infinite.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 << "<span class='warning'>This section is too damaged to support a tile! Use a welder to fix the damage.</span>"
|
||||
|
||||
Reference in New Issue
Block a user