From 048bee8184698be754079b05b195f6e439b0159f Mon Sep 17 00:00:00 2001 From: Nicaragua Date: Fri, 25 Jan 2019 05:19:57 -0300 Subject: [PATCH] added anti spam and changed visible messages --- code/modules/mob/living/simple_animal/bot/griefsky.dm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/simple_animal/bot/griefsky.dm b/code/modules/mob/living/simple_animal/bot/griefsky.dm index 0ce823ef6e1..d5741b1da09 100644 --- a/code/modules/mob/living/simple_animal/bot/griefsky.dm +++ b/code/modules/mob/living/simple_animal/bot/griefsky.dm @@ -23,6 +23,7 @@ data_hud_type = DATA_HUD_SECURITY_ADVANCED allow_pai = 0 + var/block_chance = 50 var/spin_icon = "griefsky-c" // griefsky and griefsky junior have dif icons var/dmg = 30 var/spam_flag = FALSE @@ -225,9 +226,8 @@ Auto Patrol: []"}, if(!spam_flag) speak("[arrest_type ? "Detaining" : "Arresting"] level [threat] scumbag [C] in [location].", radio_channel) spam_flag = TRUE - addtimer(CALLBACK(src, .proc/spam_flag_false), 150) //to avoid spamming comms of sec for each hit - C.visible_message("[src] has [harmbaton ? "beaten" : "stunned"] [C]!",\ - "[src] has [harmbaton ? "beaten" : "stunned"] you!") + addtimer(CALLBACK(src, .proc/spam_flag_false), 100) //to avoid spamming comms of sec for each hit + visible_message("[src] flails his swords and cuts [C]!") /mob/living/simple_animal/bot/griefsky/Life(seconds, times_fired) . = ..() @@ -426,6 +426,7 @@ Auto Patrol: []"}, /mob/living/simple_animal/bot/griefsky/bullet_act(obj/item/projectile/P) visible_message("[src] deflects [P] with its energy swords!") playsound(loc, 'sound/weapons/blade1.ogg', 50, 1, FALSE) + retaliate(P.firer) return FALSE /obj/machinery/bot_core/secbot