mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-18 04:41:27 +01:00
12b13d6b24
* the agony begins * fixes * signaling * removed remaining attempt_vr * corrected behaviors * keep the history * oop * wording * filter for intent here * oop * no harm in these either * Update code/_onclick/item_attack.dm Co-authored-by: Cameron Lennox <killer65311@gmail.com> * Get rid of old procs --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
49 lines
1.6 KiB
Plaintext
49 lines
1.6 KiB
Plaintext
/turf/simulated/floor/ex_act(severity)
|
|
//set src in oview(1)
|
|
switch(severity)
|
|
if(1.0)
|
|
src.ChangeTurf(get_base_turf_by_area(src))
|
|
if(2.0)
|
|
switch(pick(40;1,40;2,3))
|
|
if (1)
|
|
if(prob(33)) new /obj/item/stack/material/steel(src)
|
|
src.ReplaceWithLattice()
|
|
if(2)
|
|
src.ChangeTurf(get_base_turf_by_area(src))
|
|
if(3)
|
|
if(prob(33)) new /obj/item/stack/material/steel(src)
|
|
if(prob(80))
|
|
src.break_tile_to_plating()
|
|
else
|
|
src.break_tile()
|
|
src.hotspot_expose(1000,CELL_VOLUME)
|
|
if(3.0)
|
|
if (prob(50))
|
|
src.break_tile()
|
|
src.hotspot_expose(1000,CELL_VOLUME)
|
|
return
|
|
|
|
/turf/simulated/floor/fire_act(datum/gas_mixture/air, exposed_temperature, exposed_volume)
|
|
|
|
var/temp_destroy = get_damage_temperature()
|
|
if(!burnt && prob(5))
|
|
burn_tile(exposed_temperature)
|
|
else if(temp_destroy && exposed_temperature >= (temp_destroy + 100) && prob(1) && !is_plating())
|
|
make_plating() //destroy the tile, exposing plating
|
|
burn_tile(exposed_temperature)
|
|
return
|
|
|
|
//should be a little bit lower than the temperature required to destroy the material
|
|
/turf/simulated/floor/proc/get_damage_temperature()
|
|
return flooring ? flooring.damage_temperature : null
|
|
|
|
/turf/simulated/floor/adjacent_fire_act(turf/simulated/floor/adj_turf, datum/gas_mixture/adj_air, adj_temp, adj_volume)
|
|
var/dir_to = get_dir(src, adj_turf)
|
|
|
|
for(var/obj/structure/window/W in src)
|
|
if(W.dir == dir_to || W.is_fulltile()) //Same direction or diagonal (full tile)
|
|
W.fire_act(adj_air, adj_temp, adj_volume)
|
|
|
|
for(var/obj/machinery/door/D in src) //makes doors next to fire affected by fire
|
|
D.fire_act(adj_air, adj_temp, adj_volume)
|