Colorable Chairs, Stools, and other phoney baloney (#12797)

This commit is contained in:
Wowzewow (Wezzy)
2021-12-02 22:57:24 +01:00
committed by GitHub
parent bd827bac39
commit 56c16bf208
68 changed files with 2055 additions and 1778 deletions
+2
View File
@@ -52,4 +52,6 @@ var/list/mob_icon_icon_states = list()
var/image/I
if(build_from_parts)
I = overlay_image(mob_icon, "[item_state][contained_sprite ? slot_str_to_contained_flag(slot) : ""]_[worn_overlay]", null, RESET_COLOR|RESET_ALPHA)
if(worn_overlay_color)
I.color = worn_overlay_color
return I
@@ -164,8 +164,8 @@
/obj/item/extinguisher/proc/propel_object(var/obj/O, mob/user, movementdirection)
if(O.anchored) return
var/obj/structure/bed/chair/C
if(istype(O, /obj/structure/bed/chair))
var/obj/structure/bed/stool/chair/C
if(istype(O, /obj/structure/bed/stool/chair))
C = O
var/list/move_speed = list(1, 1, 1, 2, 2, 3)
@@ -13,6 +13,7 @@
var/use_material_name = TRUE // Does the finished item put the material name in front of it?
var/use_material_sound = TRUE
var/use_material_shatter = TRUE // If it has a custom shatter message.
var/applies_material_colour = 1
var/unbreakable
var/force_divisor = 0.5
@@ -90,11 +91,11 @@
/obj/item/material/proc/shatter(var/consumed)
var/turf/T = get_turf(src)
T.visible_message("<span class='danger'>\The [src] [material.destruction_desc]!</span>")
if(use_material_shatter)
T.visible_message(SPAN_DANGER("\The [src] [material.destruction_desc]!"))
if(istype(loc, /mob/living))
var/mob/living/M = loc
M.drop_from_inventory(src)
playsound(src, material.shatter_sound, 70, 1)
if(!consumed && drops_debris) material.place_shard(T)
qdel(src)