From 665fafd2ba7a9ade2b7b1d801c81bf6f5f933120 Mon Sep 17 00:00:00 2001 From: Kyep Date: Sun, 24 Jun 2018 22:45:40 -0700 Subject: [PATCH] reset clears hostiles, block chance tweaks --- code/game/area/Space Station 13 areas.dm | 2 ++ .../mob/living/simple_animal/hostile/syndicate.dm | 11 +++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/code/game/area/Space Station 13 areas.dm b/code/game/area/Space Station 13 areas.dm index b7965b7c5d0..2fdd49bfb4b 100644 --- a/code/game/area/Space Station 13 areas.dm +++ b/code/game/area/Space Station 13 areas.dm @@ -599,6 +599,8 @@ var/list/ghostteleportlocs = list() for(var/mob/living/M in guards_spawned) qdel(M) guards_spawned = list() + hostiles = list() + hostiles_dead = list() alert_log += "Alert level reset." /area/syndicate_depot/proc/increase_alert(var/reason) diff --git a/code/modules/mob/living/simple_animal/hostile/syndicate.dm b/code/modules/mob/living/simple_animal/hostile/syndicate.dm index c828d6d5143..d23a6349436 100644 --- a/code/modules/mob/living/simple_animal/hostile/syndicate.dm +++ b/code/modules/mob/living/simple_animal/hostile/syndicate.dm @@ -39,19 +39,20 @@ armour_penetration = 28 status_flags = 0 loot = list(/obj/effect/landmark/mobcorpse/syndicatesoldier, /obj/item/melee/energy/sword/saber/red, /obj/item/shield/energy) + var/melee_block_chance = 20 /mob/living/simple_animal/hostile/syndicate/melee/attackby(var/obj/item/O as obj, var/mob/user as mob, params) user.changeNext_move(CLICK_CD_MELEE) user.do_attack_animation(src) if(O.force) - if(prob(80)) + if(prob(melee_block_chance)) + visible_message("[src] blocks the [O] with its shield! ") + else var/damage = O.force if(O.damtype == STAMINA) damage = 0 health -= damage visible_message("[src] has been attacked with the [O] by [user]. ") - else - visible_message("[src] blocks the [O] with its shield! ") playsound(loc, O.hitsound, 25, 1, -1) else to_chat(usr, "This weapon is ineffective, it does no damage.") @@ -76,6 +77,7 @@ robust_searching = 1 // Together with stat_attack, ensures dionae/etc that regen are killed properly stat_attack = 1 universal_speak = 1 + melee_block_chance = 40 var/area/syndicate_depot/depotarea var/raised_alert = FALSE var/alert_on_death = FALSE @@ -165,7 +167,7 @@ name = "Syndicate Officer" alert_on_death = TRUE alert_on_timeout = TRUE - + melee_block_chance = 60 /mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/armory name = "Syndicate Armory Officer" @@ -173,6 +175,7 @@ icon_living = "syndicatemeleespace" maxHealth = 250 health = 250 + melee_block_chance = 80 alert_on_timeout = TRUE /mob/living/simple_animal/hostile/syndicate/melee/autogib/depot/armory/death()