From a233cf5f255417764f36f08940bcf9b6728acee9 Mon Sep 17 00:00:00 2001 From: "rastaf.zero@gmail.com" Date: Tue, 4 Jan 2011 00:35:40 +0000 Subject: [PATCH] Atmos analyser now fit on belt. Emergency oxygentank's volume was reduced, initial pressure was increased, distribution pressure was set to 21. Internals icon was fixed. Also, now you can activate weared internals by clicking on icon. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@763 316c924e-a436-60f5-8080-3fe189b3f50e --- code/defines/obj/weapon.dm | 8 +++++- code/game/machinery/atmoalter/canister.dm | 20 +++++++-------- code/game/objects/tank.dm | 16 +++++++----- code/modules/mob/living/carbon/human/human.dm | 11 ++++++-- code/modules/mob/living/carbon/human/life.dm | 4 +-- code/modules/mob/mob.dm | 25 ++++++++++++++++++- 6 files changed, 62 insertions(+), 22 deletions(-) diff --git a/code/defines/obj/weapon.dm b/code/defines/obj/weapon.dm index 4a2375c0d8..b7c29df292 100644 --- a/code/defines/obj/weapon.dm +++ b/code/defines/obj/weapon.dm @@ -133,7 +133,7 @@ icon_state = "atmos" item_state = "analyzer" w_class = 2.0 - flags = FPRINT | TABLEPASS| CONDUCT + flags = FPRINT | TABLEPASS| CONDUCT | ONBELT throwforce = 5 throw_speed = 4 throw_range = 20 @@ -1039,6 +1039,7 @@ Total SMES charging rate should not exceed total power generation rate, or an ov throwforce = 10.0 throw_speed = 1 throw_range = 4 + var/volume = 70 /obj/item/weapon/tank/anesthetic name = "Gas Tank (Sleeping Agent)" @@ -1051,10 +1052,13 @@ Total SMES charging rate should not exceed total power generation rate, or an ov w_class = 4.0 item_state = "jetpack" var/datum/effects/system/ion_trail_follow/ion_trail + distribute_pressure = ONE_ATMOSPHERE*O2STANDARD + //volume = 140 //jetpack sould be larger, but then it will never deplete -rastaf0 /obj/item/weapon/tank/oxygen name = "Gas Tank (Oxygen)" icon_state = "oxygen" + distribute_pressure = ONE_ATMOSPHERE*O2STANDARD /obj/item/weapon/tank/air name = "Gas Tank (Air Mix)" @@ -1070,6 +1074,8 @@ Total SMES charging rate should not exceed total power generation rate, or an ov flags = FPRINT | TABLEPASS | ONBELT | CONDUCT w_class = 2.5 force = 4.0 + distribute_pressure = ONE_ATMOSPHERE*O2STANDARD + volume = 10 //yeah, SO tiny /obj/item/weapon/teleportation_scroll name = "Teleportation Scroll" diff --git a/code/game/machinery/atmoalter/canister.dm b/code/game/machinery/atmoalter/canister.dm index 10be6d267c..f18d2f26d4 100644 --- a/code/game/machinery/atmoalter/canister.dm +++ b/code/game/machinery/atmoalter/canister.dm @@ -10,7 +10,7 @@ var/release_pressure = ONE_ATMOSPHERE var/color = "yellow" - var/labeled = 0 + var/is_labeled = 0 var/filled = 0.5 pressure_resistance = 7*ONE_ATMOSPHERE var/temperature_resistance = 1000 + T0C @@ -20,32 +20,32 @@ name = "Canister: \[N2O\]" icon_state = "redws" color = "redws" - labeled = 1 + is_labeled = 1 /obj/machinery/portable_atmospherics/canister/nitrogen name = "Canister: \[N2\]" icon_state = "red" color = "red" - labeled = 1 + is_labeled = 1 /obj/machinery/portable_atmospherics/canister/oxygen name = "Canister: \[O2\]" icon_state = "blue" color = "blue" - labeled = 1 + is_labeled = 1 /obj/machinery/portable_atmospherics/canister/toxins name = "Canister \[Toxin (Bio)\]" icon_state = "orange" color = "orange" - labeled = 1 + is_labeled = 1 /obj/machinery/portable_atmospherics/canister/carbon_dioxide name = "Canister \[CO2\]" icon_state = "black" color = "black" - labeled = 1 + is_labeled = 1 /obj/machinery/portable_atmospherics/canister/air name = "Canister \[Air\]" icon_state = "grey" color = "grey" - labeled = 1 + is_labeled = 1 /obj/machinery/portable_atmospherics/canister/update_icon() src.overlays = 0 @@ -167,7 +167,7 @@ holding_text = {"
Tank Pressure: [holding.air_contents.return_pressure()] KPa
Remove Tank
"} - var/output_text = {"[name][!labeled?" relabel":""]
+ var/output_text = {"[name][!is_labeled?" relabel":""]
Pressure: [air_contents.return_pressure()] KPa
Port Status: [(connected_port)?("Connected"):("Disconnected")] [holding_text] @@ -205,7 +205,7 @@ Release Pressure: - -