From 6f9c9eed059a74e84609a2319fa729a64351b4be Mon Sep 17 00:00:00 2001 From: HugoLuman Date: Fri, 6 May 2016 19:23:51 -0700 Subject: [PATCH] Fixes bad code. No more intent strings or unnecessary variables --- code/game/objects/items/weapons/clown_items.dm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/game/objects/items/weapons/clown_items.dm b/code/game/objects/items/weapons/clown_items.dm index 2abc8f5858c..fb86a5ef22b 100644 --- a/code/game/objects/items/weapons/clown_items.dm +++ b/code/game/objects/items/weapons/clown_items.dm @@ -39,10 +39,9 @@ //So this is a workaround. This also makes more sense from an IC standpoint. ~Carn if(user.client && (target in user.client.screen)) to_chat(user, "You need to take that [target.name] off before cleaning it.") - else if(target == user && user.a_intent == "grab") + else if(target == user && user.a_intent == I_GRAB) var/mob/living/carbon/human/muncher = user - var/species = muncher.get_species() - if(species == "Drask") + if(muncher && muncher.get_species() == "Drask") to_chat(user, "You take a bite of the [src.name]. Delicious!") playsound(user.loc, 'sound/items/eatfood.ogg', 50, 0) user.nutrition += 5