This commit is contained in:
Zuhayr
2015-05-31 03:34:29 +09:30
parent bf1733640a
commit f9e99e1ee9
8 changed files with 51 additions and 58 deletions
+21
View File
@@ -144,6 +144,9 @@ var/list/name_to_material
/material/proc/is_brittle()
return !!(flags & MATERIAL_BRITTLE)
/material/proc/combustion_effect(var/turf/T, var/temperature)
return
// Datum definitions follow.
/material/uranium
name = "uranium"
@@ -177,6 +180,10 @@ var/list/name_to_material
hardness = 40
stack_origin_tech = "materials=4"
/material/gold/bronze //placeholder for ashtrays
name = "bronze"
icon_colour = "#EDD12F"
/material/silver
name = "silver"
stack_type = /obj/item/stack/material/silver
@@ -196,6 +203,20 @@ var/list/name_to_material
stack_origin_tech = "phorontech=2;materials=2"
door_icon_base = "stone"
/material/phoron/combustion_effect(var/turf/T, var/temperature, var/effect_multiplier)
if(isnull(ignition_point))
return 0
if(temperature < ignition_point)
return 0
var/totalPhoron = 0
for(var/turf/simulated/floor/target_tile in range(2,T))
var/phoronToDeduce = (temperature/30) * effect_multiplier
totalPhoron += phoronToDeduce
target_tile.assume_gas("phoron", phoronToDeduce, 200+T0C)
spawn (0)
target_tile.hotspot_expose(temperature, 400)
return round(totalPhoron/100)
/material/stone
name = "sandstone"
stack_type = /obj/item/stack/material/sandstone