From adc4c76be7178d5e5da0f779d6e86ea60dd7b5d6 Mon Sep 17 00:00:00 2001 From: timothyteakettle <59849408+timothyteakettle@users.noreply.github.com> Date: Fri, 24 Jul 2020 02:00:22 +0100 Subject: [PATCH] fix --- code/modules/mob/living/simple_animal/bot/secbot.dm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/modules/mob/living/simple_animal/bot/secbot.dm b/code/modules/mob/living/simple_animal/bot/secbot.dm index 910b9f2a92..e14cb488ae 100644 --- a/code/modules/mob/living/simple_animal/bot/secbot.dm +++ b/code/modules/mob/living/simple_animal/bot/secbot.dm @@ -82,8 +82,6 @@ emote = attack_two if("ARREST") emote = arrest_emote - if("THREAT_LEVEL") - emote = threat //now replace pieces of the text with the information we have if(emote_type != "TAUNT" && emote_type != "ARREST") @@ -92,7 +90,7 @@ emote = replacetext(emote, "BOT", "[name]") //needs to be bold if its a taunt or an arrest text if(criminal) emote = replacetext(emote, "CRIMINAL", criminal.name) - if(threat) + if(num2text(threat)) //because a threat of 0 will be false emote = replacetext(emote, "THREAT_LEVEL", threat) if(arrest > -1) emote = replacetext(emote, "ARREST_TYPE", arrest_texts[arrest + 1])