mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
New Mecha Stuff (#26316)
* New Mecha Stuff * Turns out istypeinlist is bad * barrycatches * designs
This commit is contained in:
@@ -158,7 +158,14 @@
|
||||
if(usr.incapacitated())
|
||||
return 1
|
||||
if (istype(usr.loc,/obj/mecha)) // stops inventory actions in a mech
|
||||
return 1
|
||||
if(istype(master,/obj/item/weapon/storage)) //should always be true, but sanity
|
||||
var/obj/item/weapon/storage/S = master
|
||||
if(!S.distance_interact(usr))
|
||||
return 1
|
||||
//else... continue onward to master.attackby
|
||||
else
|
||||
//master isn't storage, exit
|
||||
return 1
|
||||
if(master)
|
||||
var/obj/item/I = usr.get_active_hand()
|
||||
if(I)
|
||||
|
||||
Reference in New Issue
Block a user