mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 14:08:31 +01:00
Improves fireaxe check for poddoors.
This commit is contained in:
@@ -23,12 +23,12 @@
|
||||
/obj/machinery/door/poddoor/attackby(obj/item/I, mob/user)
|
||||
add_fingerprint(user)
|
||||
|
||||
if(!istype(I, /obj/item/weapon/crowbar) && !istype(I, /obj/item/weapon/twohanded/fireaxe))
|
||||
return
|
||||
if(istype(I, /obj/item/weapon/twohanded/fireaxe))
|
||||
var/obj/item/weapon/twohanded/fireaxe/F = I
|
||||
if(!F.wielded)
|
||||
return
|
||||
else if(!istype(I, /obj/item/weapon/crowbar))
|
||||
return
|
||||
|
||||
if(stat & NOPOWER)
|
||||
open(1) //ignore the usual power requirement.
|
||||
|
||||
Reference in New Issue
Block a user