mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] sane stacks (#11533)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
4797afe137
commit
a272557ccd
@@ -19,6 +19,7 @@
|
||||
material_name = MAT_WOOD
|
||||
material = get_material_by_name("[material_name]")
|
||||
if(!material)
|
||||
stack_trace("Material of type: [material_name] does not exist.")
|
||||
return INITIALIZE_HINT_QDEL
|
||||
color = material.icon_colour
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
material_name = MAT_WOOD
|
||||
material = get_material_by_name("[material_name]")
|
||||
if(!material)
|
||||
stack_trace("Material of type: [material_name] does not exist.")
|
||||
return INITIALIZE_HINT_QDEL
|
||||
color = material.icon_colour
|
||||
AddElement(/datum/element/climbable)
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
/obj/machinery/door/blast/puzzle/Initialize(mapload)
|
||||
. = ..()
|
||||
implicit_material = get_material_by_name("dungeonium")
|
||||
implicit_material = get_material_by_name(MAT_ALIEN_DUNGEON)
|
||||
if(locks.len)
|
||||
return
|
||||
var/check_range = world.view * checkrange_mult
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
new_material = MAT_STEEL
|
||||
material = get_material_by_name(new_material)
|
||||
if(!istype(material))
|
||||
stack_trace("Material of type: [new_material] does not exist.")
|
||||
return INITIALIZE_HINT_QDEL
|
||||
if(new_padding_material)
|
||||
padding_material = get_material_by_name(new_padding_material)
|
||||
|
||||
@@ -23,10 +23,11 @@
|
||||
if(!new_material)
|
||||
new_material = MAT_STEEL
|
||||
material = get_material_by_name(new_material)
|
||||
if(!istype(material))
|
||||
stack_trace("Material of type: [new_material] does not exist.")
|
||||
return INITIALIZE_HINT_QDEL
|
||||
if(new_padding_material)
|
||||
padding_material = get_material_by_name(new_padding_material)
|
||||
if(!istype(material))
|
||||
return INITIALIZE_HINT_QDEL
|
||||
force = round(material.get_blunt_damage()*0.4)
|
||||
update_icon()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user