mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-23 12:06:22 +01:00
@@ -237,3 +237,34 @@
|
||||
if(cell.charge <= 0)
|
||||
turn_off(1)
|
||||
|
||||
/mob/living/simple_animal/hostile/jelly/cold //you are my test mob now fug you
|
||||
hostile=0
|
||||
retaliate=1
|
||||
name = "Frostbite Jelly"
|
||||
//might make a blue icon someday, not priority this is debug stuff
|
||||
var/cooling = -5 //variable cooling
|
||||
var/isCooling = 1
|
||||
cold_damage_per_tick = 0
|
||||
maxbodytemp = 1000
|
||||
|
||||
/mob/living/simple_animal/hostile/jelly/cold/proc/toggle_cooling()
|
||||
isCooling=!isCooling
|
||||
|
||||
/mob/living/simple_animal/hostile/jelly/cold/proc/handle_cooling(var/datum/gas_mixture/environment)
|
||||
var/datum/gas_mixture/gas
|
||||
gas = environment.remove(0.25 * environment.total_moles)
|
||||
if(gas)
|
||||
gas.add_thermal_energy(cooling)
|
||||
environment.merge(gas)
|
||||
|
||||
/mob/living/simple_animal/hostile/jelly/cold/Life()
|
||||
..()
|
||||
var/datum/gas_mixture/environment = src.loc.return_air()
|
||||
if(icon_state != icon_dead && isCooling)
|
||||
handle_cooling(environment)
|
||||
src.bodytemperature -= cooling
|
||||
if(src.bodytemperature<=-500)
|
||||
isCooling = 0
|
||||
if(src.bodytemperature>=-499)
|
||||
isCooling = 1
|
||||
//This thing is basically a cooling unit and could be used for the engine, I mean what
|
||||
|
||||
Reference in New Issue
Block a user