Skip to content

Commit

Permalink
Making shepherd abnormality friendly on r corp map (#1893)
Browse files Browse the repository at this point in the history
  • Loading branch information
Halonexus authored Jan 24, 2024
1 parent 87fc850 commit a24ce27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
var/list/people_list = list() //list of people shepperd can mention
var/buddy_hit = FALSE
var/red_hit = FALSE // Controls Little Red Riding Hooded Mercenary's ability to be "hit" by slash attacks
var/combat_map = FALSE
//lines said during combat
var/list/combat_lines = list(
"Have at you!",
Expand Down Expand Up @@ -126,6 +127,9 @@

/mob/living/simple_animal/hostile/abnormality/blue_shepherd/Initialize()
. = ..()
if(IsCombatMap())
combat_map = TRUE
faction |= "hostile"
RegisterSignal(SSdcs, COMSIG_GLOB_MOB_DEATH, .proc/OnMobDeath) // Alright, here we go again
RegisterSignal(SSdcs, COMSIG_GLOB_CREWMEMBER_JOINED, .proc/OnNewCrew)
//makes a list of people and abno to shit talk
Expand Down Expand Up @@ -290,7 +294,7 @@
if(stat == DEAD)
return
new /obj/effect/temp_visual/smash_effect(T)
for(var/mob/living/L in HurtInTurf(T, list(), slash_damage, BLACK_DAMAGE, hurt_mechs = TRUE, hurt_structure = TRUE, break_not_destroy = TRUE))
for(var/mob/living/L in HurtInTurf(T, list(), slash_damage, BLACK_DAMAGE, check_faction = combat_map, hurt_mechs = TRUE, hurt_structure = TRUE, break_not_destroy = TRUE))
if(L == awakened_buddy && !buddy_hit)
buddy_hit = TRUE //sometimes buddy get hit twice so we check if it got hit in this slash
awakened_buddy.adjustHealth(700) //it would take approximatively 9 slashes to take buddy down
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@

/mob/living/simple_animal/hostile/abnormality/red_buddy/Initialize()
. = ..()
if(IsCombatMap())
faction |= "hostile"
if(LAZYLEN(SSlobotomy_corp.all_abnormality_datums))
for(var/datum/abnormality/A in SSlobotomy_corp.all_abnormality_datums)
if(A.name == "Blue Smocked Shepherd")
Expand Down

0 comments on commit a24ce27

Please sign in to comment.