mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
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:
co-authored by
Mothblocks
parent
cc1d242273
commit
e0b706c36c
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user