From c7fc7f48118e8650e4db9cc45fac6328f02e1fa4 Mon Sep 17 00:00:00 2001 From: ikarrus Date: Fri, 16 May 2014 22:17:06 -0600 Subject: [PATCH] Monkeys can be loyalty implanted Monkeys can still be revs, so they should be able to be loyalty implanted. This would also fall in line with the other implants, which have no race restriction. Fixes #637 --- .../game/objects/items/weapons/implants/implant.dm | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/code/game/objects/items/weapons/implants/implant.dm b/code/game/objects/items/weapons/implants/implant.dm index e576db99e45..18b9563867c 100644 --- a/code/game/objects/items/weapons/implants/implant.dm +++ b/code/game/objects/items/weapons/implants/implant.dm @@ -139,15 +139,13 @@ return dat -/obj/item/weapon/implant/loyalty/implanted(mob/M) - if(!ishuman(M)) return 0 - var/mob/living/carbon/human/H = M - if(H.mind in ticker.mode.head_revolutionaries) - H.visible_message("[H] seems to resist the implant!", "You feel the corporate tendrils of Nanotrasen try to invade your mind!") +/obj/item/weapon/implant/loyalty/implanted(mob/target) + if(target.mind in ticker.mode.head_revolutionaries) + target.visible_message("[target] seems to resist the implant!", "You feel the corporate tendrils of Nanotrasen try to invade your mind!") return 0 - else if(H.mind in ticker.mode:revolutionaries) - ticker.mode:remove_revolutionary(H.mind) - H << "You feel a surge of loyalty towards Nanotrasen." + if(target.mind in ticker.mode.revolutionaries) + ticker.mode.remove_revolutionary(target.mind) + target << "You feel a surge of loyalty towards Nanotrasen." return 1