Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Zonespace27 committed Dec 15, 2024
1 parent d5d42d8 commit 5d5fdbc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions code/modules/mob/living/carbon/human/ai/brain/ai_brain.dm
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ GLOBAL_LIST_EMPTY(human_ai_brains)
GLOB.human_ai_brains += src
setup_detection_radius()
appraise_inventory()
tied_human.a_intent_change(INTENT_DISARM)

/datum/human_ai_brain/Destroy(force, ...)
GLOB.human_ai_brains -= src
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,13 @@
if(HAS_TRAIT(target, TRAIT_CLOAKED) && get_dist(tied_human, target) > cloak_visible_range)
return FALSE

if(!friendly_check(target))
return FALSE

return TRUE

/datum/human_ai_brain/proc/friendly_check()
var/list/turf_list = get_line(get_turf(tied_human), get_turf(current_target))
/datum/human_ai_brain/proc/friendly_check(atom/target)
var/list/turf_list = get_line(get_turf(tied_human), get_turf(target))
for(var/turf/tile in turf_list)
if(istype(tile, /turf/closed))
return TRUE
Expand Down
1 change: 0 additions & 1 deletion code/modules/mob/living/carbon/human/ai/squad_spawner.dm
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ GLOBAL_LIST_EMPTY(human_ai_squad_presets)
/datum/equipment_preset/clf/soldier/ai = 3,
/datum/equipment_preset/clf/medic = 1,
/datum/equipment_preset/clf/engineer/ai = 1,
/datum/equipment_preset/clf/synth/combat = 1,
)

/datum/human_ai_squad_preset/clf/kill_team
Expand Down

0 comments on commit 5d5fdbc

Please sign in to comment.