Chitin and wood armour plates can be made with a sharp object.

This commit is contained in:
MistakeNot4892
2022-10-31 01:32:44 +11:00
parent 7d01113f15
commit 19bfb761f9
5 changed files with 25 additions and 12 deletions
@@ -57,6 +57,12 @@
QDEL_NULL_LIST(plates)
return ..()
/obj/item/clothing/accessory/storage/poncho/crafted/update_clothing_icon()
if(ismob(loc))
var/mob/M = src.loc
M.update_inv_wear_suit()
. = ..()
/obj/item/clothing/accessory/storage/poncho/crafted/proc/recalculate_armor()
LAZYINITLIST(armor)
if(!initial_armor)
@@ -115,10 +121,10 @@
to_chat(user, SPAN_WARNING("\The [src] has no plating to remove."))
else
var/obj/item/plate = plates[1]
user.visible_message(SPAN_NOTICE("\The [src] removes \the [plate] from \the [src]."))
recalculate_armor()
user.visible_message(SPAN_NOTICE("\The [user] removes \the [plate] from \the [src]."))
plate.dropInto(user.loc)
LAZYREMOVE(plates, plate)
recalculate_armor()
return TRUE
if(istype(O, /obj/item/reagent_containers/glass))