Files
Yogstation/code/datums/components/hot_ice.dm
Jamie D d0cef42e36 Huge Atmospherics Update - Five layer pipes and new funny gases (#10447)
* AHHHHHHHHHHHHH

* oopsie

* Fucking extools, who would of guessed

* eee

* MAPS GO BRRRRR

* Icons

* Update code/modules/atmospherics/machinery/portable/canister.dm

Co-authored-by: Hopekz <hopekxx@gmail.com>

* Update code/modules/reagents/chemistry/reagents/other_reagents.dm

Co-authored-by: Hopekz <hopekxx@gmail.com>

* Update code/modules/reagents/chemistry/reagents/other_reagents.dm

Co-authored-by: Hopekz <hopekxx@gmail.com>

* Update code/modules/reagents/chemistry/reagents/other_reagents.dm

Co-authored-by: Hopekz <hopekxx@gmail.com>

* Update code/game/objects/items/grenades/atmos_grenades.dm

Co-authored-by: Hopekz <hopekxx@gmail.com>

* Update code/game/objects/items/twohanded.dm

Co-authored-by: Hopekz <hopekxx@gmail.com>

* Update code/modules/atmospherics/machinery/components/binary_devices/pressure_valve.dm

Co-authored-by: Hopekz <hopekxx@gmail.com>

* Update code/modules/atmospherics/gasmixtures/gas_mixture.dm

Co-authored-by: Hopekz <hopekxx@gmail.com>

* Update code/modules/reagents/chemistry/reagents/other_reagents.dm

Co-authored-by: Hopekz <hopekxx@gmail.com>

* Update code/modules/reagents/chemistry/reagents/other_reagents.dm

Co-authored-by: Hopekz <hopekxx@gmail.com>

* More shit

* Update basemats.dm

* Cock and Balls

* oh my god kill me please I hate gases and colton is a slave master someone call the cops he is after me and I dont feel good. I need some help here because I dont know what im doing and im very scared.

* Fuck off linter

* HMMMMMMMM

* Hmm?

* afasggsag

* REEEE

* COMPI:E BAD

* Hmmmm

* icons maybe

* T mixer

* Icons

* Ree

* Please work

* Fucking yogs folder

* Reeee

* Icon and runtime

* Reee

* Indents

* MIXER GO BRRR

* E

* Last update of the night

* oopsie

* Linter go Brrr

* REEE

* MOre fixes

* e

* Electroshitter

* EEE

* FUCK

* Maybe makes this work

* tg bad

* Come at me linter.

* Fucking oops

* Update electrolyzer.dm

* LINTER GO TO HELL - GIMMIE DAT GREEN TICK

* Im dumb

* E

* Update electrolyzer.dm

* Fixes vents

* Fixes

* E

* Fucking Jank code is jank

* R

* r

* Update tgui.bundle.js

* fucking moja just used goddamn find and replace

* Theos

Co-authored-by: Hopekz <hopekxx@gmail.com>
Co-authored-by: Theos <theubernyan@gmail.com>
2020-11-26 20:54:29 +00:00

37 lines
1.2 KiB
Plaintext

/datum/component/hot_ice
var/gas_name
var/gas_amount
var/temp_amount
/datum/component/hot_ice/Initialize(gas_name, gas_amount, temp_amount)
src.gas_name = gas_name
src.gas_amount = gas_amount
src.temp_amount = temp_amount
RegisterSignal(parent, COMSIG_PARENT_ATTACKBY, .proc/attackby_react)
RegisterSignal(parent, COMSIG_ATOM_FIRE_ACT, .proc/flame_react)
/datum/component/hot_ice/UnregisterFromParent()
UnregisterSignal(parent, COMSIG_PARENT_ATTACKBY)
UnregisterSignal(parent, COMSIG_ATOM_FIRE_ACT)
/datum/component/hot_ice/proc/hot_ice_melt(mob/user)
var/turf/open/T = get_turf(parent)
T.atmos_spawn_air("[gas_name]=[gas_amount];TEMP=[temp_amount]")
message_admins("Hot Ice ignited by [ADMIN_LOOKUPFLW(user)] in [ADMIN_VERBOSEJMP(T)]")
log_game("Hot Ice ignited by [key_name(user)] in [AREACOORD(T)]")
if(isturf(parent))
var/turf/K = parent
K.ScrapeAway(1, CHANGETURF_INHERIT_AIR)
else
qdel(parent)
/datum/component/hot_ice/proc/flame_react(datum/source, exposed_temperature, exposed_volume)
if(exposed_temperature > T0C + 100)
hot_ice_melt()
/datum/component/hot_ice/proc/attackby_react(datum/source, obj/item/thing, mob/user, params)
if(thing.get_temperature())
hot_ice_melt(user)