mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-28 07:20:09 +01:00
Colorable Chairs, Stools, and other phoney baloney (#12797)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user