diff --git a/code/game/objects/items/flamethrower.dm b/code/game/objects/items/flamethrower.dm index 8a53c952413..29b773562e4 100644 --- a/code/game/objects/items/flamethrower.dm +++ b/code/game/objects/items/flamethrower.dm @@ -252,7 +252,7 @@ /obj/item/assembly/igniter/proc/flamethrower_process(turf/open/location) - location.hotspot_expose(700,2) + location.hotspot_expose(heat,2) /obj/item/assembly/igniter/proc/ignite_turf(obj/item/flamethrower/F,turf/open/location,release_amount = 0.05) F.default_ignite(location,release_amount) diff --git a/code/modules/assembly/igniter.dm b/code/modules/assembly/igniter.dm index 55f5d50f2e1..330b441323b 100644 --- a/code/modules/assembly/igniter.dm +++ b/code/modules/assembly/igniter.dm @@ -1,3 +1,8 @@ +#define EXPOSED_VOLUME 1000 +#define ROOM_TEMP 293 +#define MIN_FREEZE_TEMP 50 +#define MAX_FREEZE_TEMP 1000000 + /obj/item/assembly/igniter name = "igniter" desc = "A small electronic device able to ignite combustible substances." @@ -30,7 +35,7 @@ return FALSE//Cooldown check var/turf/location = get_turf(loc) if(location) - location.hotspot_expose(1000,1000) + location.hotspot_expose(heat, EXPOSED_VOLUME) sparks.start() return TRUE @@ -42,3 +47,26 @@ . = "[user] fiddles with [src], and manages to light [A]." activate() add_fingerprint(user) + +//For the Condenser, which functions like the igniter but makes things colder. +/obj/item/assembly/igniter/condenser + name = "condenser" + desc = "A small electronic device able to chill their surroundings." + icon_state = "freezer" + custom_materials = list(/datum/material/iron=250, /datum/material/glass=300) + heat = 200 + +/obj/item/assembly/igniter/condenser/activate() + . = ..() + if(!.) + return //Cooldown check + var/turf/location = get_turf(loc) + if(location) + var/datum/gas_mixture/enviro = location.return_air() + enviro.temperature = clamp(min(ROOM_TEMP, enviro.temperature*0.85),MIN_FREEZE_TEMP,MAX_FREEZE_TEMP) + sparks.start() + +#undef EXPOSED_VOLUME +#undef ROOM_TEMP +#undef MIN_FREEZE_TEMP +#undef MAX_FREEZE_TEMP diff --git a/code/modules/research/designs/autolathe_designs.dm b/code/modules/research/designs/autolathe_designs.dm index 398e9b4b263..d1b11fbac57 100644 --- a/code/modules/research/designs/autolathe_designs.dm +++ b/code/modules/research/designs/autolathe_designs.dm @@ -615,6 +615,14 @@ build_path = /obj/item/assembly/igniter category = list("initial", "Misc") +/datum/design/condenser + name = "Condenser" + id = "condenser" + build_type = AUTOLATHE + materials = list(/datum/material/iron=250, /datum/material/glass=300) + build_path = /obj/item/assembly/igniter/condenser + category = list("initial", "Misc") + /datum/design/signaler name = "Remote Signaling Device" id = "signaler" diff --git a/code/modules/vending/assist.dm b/code/modules/vending/assist.dm index a2529428b85..6df9df1151e 100644 --- a/code/modules/vending/assist.dm +++ b/code/modules/vending/assist.dm @@ -15,7 +15,8 @@ /obj/item/stock_parts/cell/high = 1) premium = list(/obj/item/price_tagger = 3, /obj/item/vending_refill/custom = 3, - /obj/item/circuitboard/machine/vendor = 3) + /obj/item/circuitboard/machine/vendor = 3, + /obj/item/assembly/igniter/condenser = 2) refill_canister = /obj/item/vending_refill/assist product_ads = "Only the finest!;Have some tools.;The most robust equipment.;The finest gear in space!" default_price = 125 diff --git a/icons/obj/assemblies/new_assemblies.dmi b/icons/obj/assemblies/new_assemblies.dmi index adb0b69c590..26e9e30d0d4 100644 Binary files a/icons/obj/assemblies/new_assemblies.dmi and b/icons/obj/assemblies/new_assemblies.dmi differ