mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Sidewinder tool tweaks (#18531)
* e xtinguisher * extra bit i forgot * cableau
This commit is contained in:
@@ -239,9 +239,9 @@
|
||||
/obj/item/mecha_parts/mecha_equipment/extinguisher/get_equip_info()
|
||||
return "[..()] \[[src.reagents.total_volume]\]"
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/extinguisher/can_attach(obj/mecha/working/M as obj)
|
||||
/obj/item/mecha_parts/mecha_equipment/extinguisher/can_attach(obj/mecha/M as obj)
|
||||
if(..())
|
||||
if(istype(M))
|
||||
if(istype(M, /obj/mecha/working) || istype(M, /obj/mecha/combat/sidewinder))
|
||||
return 1
|
||||
return 0
|
||||
|
||||
@@ -382,9 +382,9 @@
|
||||
. = ..()
|
||||
cable = new(src, 0)
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/cable_layer/can_attach(obj/mecha/working/M)
|
||||
/obj/item/mecha_parts/mecha_equipment/cable_layer/can_attach(obj/mecha/M)
|
||||
if(..())
|
||||
if(istype(M))
|
||||
if(istype(M, /obj/mecha/working) || istype(M, /obj/mecha/combat/sidewinder))
|
||||
return 1
|
||||
return 0
|
||||
|
||||
|
||||
@@ -163,7 +163,9 @@
|
||||
harmful = FALSE
|
||||
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/energy/plasma/can_attach(obj/mecha/M)
|
||||
if(..()) //combat mech
|
||||
if(M.melee_allowed && !M.guns_allowed) //Should only hold true for melee mechs
|
||||
return 0
|
||||
else if(..()) //combat mech
|
||||
return 1
|
||||
else if(M.equipment.len < M.max_equip && istype(M))
|
||||
return 1
|
||||
@@ -181,7 +183,9 @@
|
||||
|
||||
//attachable to all mechas, like the plasma cutter
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/energy/mecha_kineticgun/can_attach(obj/mecha/M)
|
||||
if(..()) //combat mech
|
||||
if(M.melee_allowed && !M.guns_allowed) //Should only hold true for melee mechs
|
||||
return 0
|
||||
else if(..()) //combat mech
|
||||
return 1
|
||||
else if(M.equipment.len < M.max_equip && istype(M))
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user