Put clothing on people by clicking on them with clothing inhand + targeting correct area. (#69560)

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
This commit is contained in:
itseasytosee
2022-10-08 18:51:29 -07:00
committed by GitHub
co-authored by Mothblocks
parent cc1d242273
commit e0b706c36c
8 changed files with 129 additions and 33 deletions
+4 -3
View File
@@ -53,6 +53,7 @@
AddElement(/datum/element/venue_price, FOOD_PRICE_CHEAP)
if(can_be_bloody && ((body_parts_covered & FEET) || (flags_inv & HIDESHOES)))
LoadComponent(/datum/component/bloodysoles)
AddElement(/datum/element/attack_equip)
if(!icon_state)
item_flags |= ABSTRACT
@@ -104,8 +105,8 @@
else
qdel(src)
/obj/item/clothing/attack(mob/living/M, mob/living/user, params)
if(user.combat_mode || !ismoth(M) || ispickedupmob(src))
/obj/item/clothing/attack(mob/living/target, mob/living/user, params)
if(user.combat_mode || !ismoth(target) || ispickedupmob(src))
return ..()
if(clothing_flags & INEDIBLE_CLOTHING)
return ..()
@@ -113,7 +114,7 @@
moth_snack = new
moth_snack.name = name
moth_snack.clothing = WEAKREF(src)
moth_snack.attack(M, user, params)
moth_snack.attack(target, user, params)
/obj/item/clothing/attackby(obj/item/W, mob/user, params)
if(!istype(W, repairable_by))