Skip to content

Commit

Permalink
Update clown_items.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDratutiHyDa authored Jan 10, 2025
1 parent 39d85cf commit 60d5093
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions code/game/objects/items/weapons/clown_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,23 @@
target.clean_blood()
return

/obj/item/weapon/reagent_containers/food/snacks/soap/syndie/afterattack(atom/target, mob/user, proximity, params)
if(!proximity || ishuman(target)) return
if(user.client && (target in user.client.screen))
to_chat(user, "<span class='notice'>You need to take that [target.name] off before cleaning it.</span>")
else if(istype(target,/obj/effect/decal/cleanable))
to_chat(user, "<span class='notice'>You scrub \the [target.name] out.</span>")
if(target.fingerprints)
target.fingerprints = null
if(target.suit_fibers)
target.suit_fibers = null
target.clean_blood()
to_chat(user, "<span class='notice'>You FULLY clean \the [target.name].</span>")
return
obj/item/weapon/reagent_containers/food/snacks/soap/afterattack(atom/target, mob/user, proximity, params)

Check warning on line 95 in code/game/objects/items/weapons/clown_items.dm

View workflow job for this annotation

GitHub Actions / DreamChecker

relatively pathed proc defined here
if(!proximity || ishuman(target)) return
if(user.client && (target in user.client.screen))
to_chat(user, "<span class='notice'>You need to take that [target.name] off before cleaning it.</span>")
else if(istype(target,/obj/effect/decal/cleanable))
to_chat(user, "<span class='notice'>You scrub \the [target.name] out.</span>")
qdel(target)
else
if(target.fingerprints)
target.fingerprints = null
if(target.suit_fibers)
target.suit_fibers = null
target.clean_blood()
to_chat(user, "<span class='notice'>You FULLY clean \the [target.name].</span>")
target.desc += "\nБлестит как никогда раньше..."
return


/obj/item/weapon/reagent_containers/food/snacks/soap/attack(mob/target, mob/user, def_zone)
if(user.a_intent == INTENT_HARM)
Expand Down

0 comments on commit 60d5093

Please sign in to comment.