mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-20 04:32:50 +01:00
Exosuit Expansion: Return of the Ripley (#6767)
* Expands further upon Exosuits. * FixFix Inflatable Deployer * Changelog, fix oversights. * Burst. * Default 0
This commit is contained in:
@@ -643,6 +643,10 @@
|
||||
var/obj/item/weapon/rig/suit = H.back
|
||||
if(istype(suit))
|
||||
return suit.cell
|
||||
if(istype(src.loc, /obj/item/mecha_parts/mecha_equipment))
|
||||
var/obj/item/mecha_parts/mecha_equipment/mounting = src.loc
|
||||
if(mounting.chassis && mounting.chassis.cell)
|
||||
return mounting.chassis.cell
|
||||
return null
|
||||
|
||||
/obj/item/weapon/weldingtool/electric/mounted
|
||||
@@ -651,4 +655,26 @@
|
||||
/obj/item/weapon/weldingtool/electric/mounted/cyborg
|
||||
toolspeed = 0.5
|
||||
|
||||
/obj/item/weapon/weldingtool/electric/mounted/exosuit
|
||||
var/obj/item/mecha_parts/mecha_equipment/equip_mount = null
|
||||
flame_intensity = 1
|
||||
eye_safety_modifier = 2
|
||||
always_process = TRUE
|
||||
|
||||
/obj/item/weapon/weldingtool/electric/mounted/exosuit/Initialize()
|
||||
..()
|
||||
|
||||
if(istype(loc, /obj/item/mecha_parts/mecha_equipment))
|
||||
equip_mount = loc
|
||||
|
||||
/obj/item/weapon/weldingtool/electric/mounted/exosuit/process()
|
||||
..()
|
||||
|
||||
if(equip_mount && equip_mount.chassis)
|
||||
var/obj/mecha/M = equip_mount.chassis
|
||||
if(M.selected == equip_mount && get_fuel())
|
||||
setWelding(TRUE, M.occupant)
|
||||
else
|
||||
setWelding(FALSE, M.occupant)
|
||||
|
||||
#undef WELDER_FUEL_BURN_INTERVAL
|
||||
|
||||
Reference in New Issue
Block a user