Fixes the Mech RFD (#7626)

It didn't work, now it does. Better at least.
Also gave the mounted extinguisher a non-default name.
This commit is contained in:
fernerr
2019-12-08 12:21:18 +01:00
committed by Erki
parent 2d8967fc11
commit e7da5f417d
4 changed files with 14 additions and 4 deletions
@@ -1,11 +1,11 @@
/obj/item/mecha_equipment/mounted_system/rfd
name = "mounted rfd"
icon_state = "mecha_rfd"
holding_type = /obj/item/rfd/construction/borg
holding_type = /obj/item/rfd/construction/mounted
restricted_hardpoints = list(HARDPOINT_LEFT_HAND, HARDPOINT_RIGHT_HAND)
restricted_software = list(MECH_SOFTWARE_ENGINEERING)
/obj/item/rfd/construction/borg/get_hardpoint_maptext()
/obj/item/rfd/construction/mounted/get_hardpoint_maptext()
var/obj/item/mecha_equipment/mounted_system/MS = loc
if(istype(MS) && MS.owner)
var/obj/item/cell/C = MS.owner.get_cell()
@@ -13,7 +13,7 @@
return "[round(C.charge)]/[round(C.maxcharge)]"
return null
/obj/item/rfd/construction/borg/get_hardpoint_status_value()
/obj/item/rfd/construction/mounted/get_hardpoint_status_value()
var/obj/item/mecha_equipment/mounted_system/MS = loc
if(istype(MS) && MS.owner)
var/obj/item/cell/C = MS.owner.get_cell()
@@ -25,6 +25,7 @@
name = "mounted fire extinguisher"
max_water = 4000 //Good is gooder
icon_state = "mecha_exting"
safety = FALSE
/obj/item/extinguisher/mech/New()
reagents = new/datum/reagents(max_water)
@@ -39,6 +40,7 @@
return reagents.total_volume/max_water
/obj/item/mecha_equipment/mounted_system/extinguisher
name = "mounted extinguisher"
icon_state = "mecha_exting"
holding_type = /obj/item/extinguisher/mech
restricted_hardpoints = list(HARDPOINT_LEFT_HAND, HARDPOINT_RIGHT_HAND)