From 73aa107ad588535bf3c320f0978ddd4f27ffc346 Mon Sep 17 00:00:00 2001 From: LordME <58342752+TheLordME@users.noreply.github.com> Date: Thu, 22 Jun 2023 19:28:06 +0200 Subject: [PATCH] Aether Displacement Engine (#5590) ## About The Pull Request Adds a rare device that uses hydrogen to remove thermal energy ## Why It's Good For The Game ## Changelog :cl: add: Added "Aether Displacement Engine" a new toy engineering will soonish get their hands on /:cl: --- citadel.dme | 1 + code/game/machinery/vitruvius/anti_heater.dm | 38 +++++++++++++++++++ icons/machinery/vitruvius/iris.dmi | Bin 0 -> 9534 bytes 3 files changed, 39 insertions(+) create mode 100644 code/game/machinery/vitruvius/anti_heater.dm create mode 100644 icons/machinery/vitruvius/iris.dmi diff --git a/citadel.dme b/citadel.dme index b7e0dc065610..95052be22c01 100644 --- a/citadel.dme +++ b/citadel.dme @@ -1294,6 +1294,7 @@ #include "code\game\machinery\teleporter\projector.dm" #include "code\game\machinery\virtual_reality\ar_console.dm" #include "code\game\machinery\virtual_reality\vr_console.dm" +#include "code\game\machinery\vitruvius\anti_heater.dm" #include "code\game\magic\Uristrunes.dm" #include "code\game\mecha\mech_bay.dm" #include "code\game\mecha\mech_fabricator.dm" diff --git a/code/game/machinery/vitruvius/anti_heater.dm b/code/game/machinery/vitruvius/anti_heater.dm new file mode 100644 index 000000000000..56bcd54a051d --- /dev/null +++ b/code/game/machinery/vitruvius/anti_heater.dm @@ -0,0 +1,38 @@ +/// The "Idro Repression Injection System" uses fusion fuel gas to remove heat from the area +/obj/machinery/portable_atmospherics/aether_displacement_engine + name = "Aether Displacement Engine" + desc = "A weird machine, it seems to have a connector that fits the standard atmospherics port. It has been marked by the Nanotrasen Artifact Recovery and Utilisation Group as 'Safe for standard NT operations'" + + icon = 'icons/machinery/vitruvius/iris.dmi' + icon_state = "iris_idle" + + base_pixel_x = -16 + base_pixel_y = -16 + + density = TRUE + volume = 100 + + var/cooling_power = -160 KILOWATTS //per mol of fusion fuel + + var/lowest_temp = 100 + + var/mol_cap_modifier = 1//The higher the more moles are consumed per second, and the more is cooled, to increase cost to cool lower cooling power + //if we wanted to go by the Oxygen not included consumption, this would be 2.5, which would drain a cannister of hydrogen in 12 minutes + // with 1 it lasts for about 30 mintues + +/obj/machinery/portable_atmospherics/aether_displacement_engine/process(delta_time) + . = ..() + var/datum/gas_mixture/env = loc.return_air() + var/energy_to_target = env.get_thermal_energy_change(100) + var/moles_to_cool = clamp(energy_to_target / cooling_power,0,delta_time * mol_cap_modifier)//10 moles per second, delta time is in 1/10 seconds, so delta_time is our moles count + var/datum/gas_mixture/fuel_found = get_fusion_fuel(moles_to_cool) + env.adjust_thermal_energy(fuel_found.total_moles * cooling_power) + + +/obj/machinery/portable_atmospherics/aether_displacement_engine/proc/get_fusion_fuel(moles_needed) + return air_contents.remove_by_flag(GAS_FLAG_FUSION_FUEL, moles_needed) + +/obj/machinery/portable_atmospherics/aether_displacement_engine/anomaly + desc = "A weird machine, it seems to have a connector that fits the standard atmospherics port. It is bearing marks of 'Vitruvius' who ever that is." + + diff --git a/icons/machinery/vitruvius/iris.dmi b/icons/machinery/vitruvius/iris.dmi new file mode 100644 index 0000000000000000000000000000000000000000..8109bc4f3cb4326a78f69e3d0bd83d85d6bed4bb GIT binary patch literal 9534 zcmV-ECBfQ>P)V=-0C=1w$Gr-GAQT4B+4~e9wMRj;xr7l8_6iYr%M1O0O1*xA+c`DHX|@ZD zv-EOI^4!qqo0ilkJ_l$FJ*mKQgj|yHmKhqAL`kdolPgkQVuD6TYLDB+#WkkIz&J}k zzET^>Cn^U4001BWNklfh2?UDxDBW2&54RX@n&A-kEcLf7}EE3$A{@ z`~5wy*Su~yXJ($~bDs0e(?-~~&Hpd5EUPPsXppfWx`E>Z5LGN@x@5p~;QraD|sG+skki1QaWRitlaP ze(HbAyZLVfTjTN3K{+x%J3D9cPfUG242Ir$RcAc%B!0IHFMeDl(F#1_QMB)<=-a11 z%7s9%384f^8VC(xvYPUvCA4oBM|?sjq-es?2HI(&sjiy6`ISt#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