Skip to content

Commit

Permalink
mergeconfilcts begone
Browse files Browse the repository at this point in the history
  • Loading branch information
xDanilcusx committed Feb 16, 2024
1 parent dd35014 commit 846f33d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 24 deletions.
18 changes: 0 additions & 18 deletions code/modules/mob/living/carbon/xenomorph/ai/movement/facehugger.dm
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,6 @@

return ..()

/mob/living/carbon/xenomorph/facehugger/check_mob_target(mob/living/carbon/checked_target)
if(!ishuman(checked_target))
return FALSE // We don't wanna to attack anyone except humans

if(istype(checked_target.wear_mask, /obj/item/clothing/mask/facehugger))
return FALSE

if(checked_target.status_flags & XENO_HOST)
return FALSE

if(can_not_harm(checked_target))
return FALSE

if(checked_target.stat == DEAD)
return FALSE

return TRUE

/mob/living/carbon/xenomorph/facehugger/proc/climb_in(shelter)
set waitfor = FALSE

Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/xenomorph/ai/xeno_ai.dm
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@
#undef EXTRA_CHECK_DISTANCE_MULTIPLIER

/mob/living/carbon/proc/ai_can_target(mob/living/carbon/xenomorph/ai_xeno)
if(!ai_check_stat())
if(!ai_check_stat(ai_xeno))
return FALSE

if(ai_xeno.can_not_harm(src))
Expand Down
25 changes: 20 additions & 5 deletions code/modules/mob/living/carbon/xenomorph/xeno_ai_interaction.dm
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ At bare minimum, make sure the relevant checks from parent types gets copied in
/////////////////////////////
// MOBS //
/////////////////////////////
/mob/living/ai_check_stat()
/mob/living/ai_check_stat(mob/living/carbon/xenomorph/X)
return stat == CONSCIOUS


Expand All @@ -147,7 +147,7 @@ At bare minimum, make sure the relevant checks from parent types gets copied in

. = ..()

/mob/living/carbon/human/ai_can_target(mob/living/carbon/xenomorph/ai_xeno)
/mob/living/carbon/human/ai_can_target(mob/living/carbon/xenomorph/X)
. = ..()
if(!.)
return FALSE
Expand All @@ -158,8 +158,20 @@ At bare minimum, make sure the relevant checks from parent types gets copied in
if(HAS_TRAIT(src, TRAIT_NESTED))
return FALSE

if(isfacehugger(X))
if(status_flags & XENO_HOST)
return FALSE

if(istype(src, /obj/item/clothing/mask/facehugger))
return FALSE

return TRUE

/mob/living/carbon/human/ai_check_stat(mob/living/carbon/xenomorph/X)
. = ..()
if(isfacehugger(X))
return stat != DEAD


/////////////////////////////
// XENOS //
Expand All @@ -180,17 +192,20 @@ At bare minimum, make sure the relevant checks from parent types gets copied in

. = ..()

/mob/living/carbon/xenomorph/ai_can_target(mob/living/carbon/xenomorph/ai_xeno)
/mob/living/carbon/xenomorph/ai_can_target(mob/living/carbon/xenomorph/X)
. = ..()
if(!.)
return FALSE

if(IS_SAME_HIVENUMBER(ai_xeno, src))
if(isfacehugger(X))
return FALSE

if(IS_SAME_HIVENUMBER(X, src))
return FALSE

return TRUE

/mob/living/carbon/xenomorph/ai_check_stat()
/mob/living/carbon/xenomorph/ai_check_stat(mob/living/carbon/xenomorph/X)
return stat != DEAD // Should slash enemy xenos, even if they are critted out


Expand Down

0 comments on commit 846f33d

Please sign in to comment.