[MIRROR] Fixes cyborg airlock interaction (#2827)
* Fixes cyborg airlock interaction (#30809) * changes the sheet check to respect cyborgs * Uses the proc instead of a hack that we wound need to fix again * I can code totaly, yeah, sober... * I cant posibly be drunk yet i only GOT the wine a minute ago * Fixes cyborg airlock interaction
This commit is contained in:
committed by
Poojawa
parent
9284bdd205
commit
8846708727
@@ -1011,7 +1011,7 @@
|
||||
if(AIRLOCK_SECURITY_NONE)
|
||||
if(istype(C, /obj/item/stack/sheet/metal))
|
||||
var/obj/item/stack/sheet/metal/S = C
|
||||
if(S.amount < 2)
|
||||
if(S.get_amount() < 2)
|
||||
to_chat(user, "<span class='warning'>You need at least 2 metal sheets to reinforce [src].</span>")
|
||||
return
|
||||
to_chat(user, "<span class='notice'>You start reinforcing [src]</span>")
|
||||
@@ -1025,7 +1025,7 @@
|
||||
return
|
||||
else if(istype(C, /obj/item/stack/sheet/plasteel))
|
||||
var/obj/item/stack/sheet/plasteel/S = C
|
||||
if(S.amount < 2)
|
||||
if(S.get_amount() < 2)
|
||||
to_chat(user, "<span class='warning'>You need at least 2 plasteel sheets to reinforce [src].</span>")
|
||||
return
|
||||
to_chat(user, "<span class='notice'>You start reinforcing [src].</span>")
|
||||
|
||||
Reference in New Issue
Block a user