mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
Adds the condenser, a new assembly component. (#50675)
* Adds a freezy igniter * adds to component vendor. * don't nightcode. * Back to condenser names. * Adds to autolathe as well. * Applies heat to flamethrower_process. * Refresh * Review changes * Undefines properly I think.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 @@
|
||||
. = "<span class='notice'>[user] fiddles with [src], and manages to light [A].</span>"
|
||||
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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 19 KiB |
Reference in New Issue
Block a user