/obj/item/towel name = "towel" desc = "A soft cotton towel." icon = 'icons/obj/weapons.dmi' icon_state = "towel" slot_flags = SLOT_HEAD | SLOT_BELT | SLOT_OCLOTHING force = 1 w_class = 3 attack_verb = list("whipped") hitsound = 'sound/weapons/towelwhip.ogg' drop_sound = 'sound/items/drop/clothing.ogg' /obj/item/towel/attack_self(mob/living/user as mob) attack(user,user) /obj/item/towel/attack(mob/living/carbon/human/M as mob, mob/living/carbon/user as mob) if(istype(M) && user.a_intent == I_HELP) user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) if(user.on_fire) user.visible_message("\The [user] uses \the [src] to pat out \the [M]'s flames with \the [src]!") playsound(M, 'sound/weapons/towelwhip.ogg', 25, 1) M.ExtinguishMob(-1) else user.visible_message("\The [user] starts drying \the [M] off with \the [src]...") if(do_mob(user, M, 3 SECONDS)) user.visible_message("\The [user] dries \the [M] off with \the [src].") playsound(M, 'sound/weapons/towelwipe.ogg', 25, 1) M.adjust_fire_stacks(-Clamp(M.fire_stacks,-1.5,1.5)) return . = ..() /obj/item/towel/random/Initialize() . = ..() color = get_random_colour(1) /obj/item/towel/verb/lay_out() set name = "Lay Out Towel" set category = "Object" to_chat(usr, "You lay out \the [src] flat on the ground.") var/obj/item/towel_flat/T = new /obj/item/towel_flat(usr.loc) T.color = src.color qdel(src) /obj/item/towel_flat name = "towel" desc = "A soft cotton towel." icon = 'icons/obj/weapons.dmi' icon_state = "towel_flat" /obj/item/towel_flat/attack_hand(mob/user as mob) to_chat(user, "You pick up and fold \the [src].") var/obj/item/towel/T = new /obj/item/towel(user) T.color = src.color user.put_in_hands(T) qdel(src)