Merge pull request #23946 from MadmanMartian/plasma_rig

Adds a rigsuit module for making your rigsuit plasmaproof
This commit is contained in:
jknpj
2019-08-30 07:26:23 -03:00
committed by GitHub
2 changed files with 33 additions and 1 deletions

View File

@@ -25,11 +25,13 @@
desc = "Self-lubricating joints allow for ease of movement when walking in a rigsuit."
/obj/item/rig_module/speed_boost/activate(var/mob/user,var/obj/item/clothing/suit/space/rig/R)
..()
if(R.cell.use(500))
say_to_wearer("Speed module engaged.")
R.slowdown = max(1, slowdown/1.25)
/obj/item/rig_module/speed_boost/deactivate(var/mob/user, var/obj/item/clothing/suit/space/rig/R)
..()
R.slowdown = initial(R.slowdown)
/obj/item/rig_module/health_readout
@@ -97,4 +99,24 @@
//NEED TO GET MAXIMUM AMOUNT OF MOLES WITHOUT GOING OVER 10*ONE_ATMOSPHERE
//pressure = total_moles * R_IDEAL_GAS_EQUATION * temperature / volume
//pressure_delta = target_moles * 8.314 * sample_temperature / internals.volume
//pressure_delta = target_moles * 8.314 * sample_temperature / internals.volume
/obj/item/rig_module/plasma_proof
name = "plasma-proof sealing authority"
desc = "Brings the suit it is installed into up to plasma environment standards."
/obj/item/rig_module/plasma_proof/activate(var/mob/user,var/obj/item/clothing/suit/space/rig/R)
..()
if(R.cell.use(250))
say_to_wearer("Plasma seal initialized.")
R.clothing_flags |= PLASMAGUARD
if(R.H)
R.H.clothing_flags |= PLASMAGUARD
/obj/item/rig_module/plasma_proof/deactivate(var/mob/user, var/obj/item/clothing/suit/space/rig/R)
..()
say_to_wearer("Plasma seal disengaged.")
R.clothing_flags &= ~PLASMAGUARD
if(R.H)
R.H.clothing_flags &= ~PLASMAGUARD

View File

@@ -120,3 +120,13 @@
category = "Misc"
materials = list(MAT_GLASS = 1000, SACID = 15, MAT_SILVER = 150)
build_path = /obj/item/rig_module/speed_boost
/datum/design/rigsuit_powercreep
name = "Circut Design (Rigsuit plasma sealant)"
desc = "When installed and activated, ensures that the suit is now resistant to plasma contamination."
id = "rigsuit_plasma"
req_tech = list(Tc_PROGRAMMING = 4, Tc_PLASMATECH = 4)
build_type = IMPRINTER
category = "Misc"
materials = list(MAT_GLASS = 2500, SACID = 25, MAT_SILVER = 1000, MAT_PLASMA = 1000)
build_path = /obj/item/rig_module/plasma_proof