Fixes target prioritization not working consistently due to not all mining mobs having ai_retaliate (#96655)

target prioritization makes use of retaliation, but not all mobs had it,
now they do (should)

🆑 CabinetOnFire
fix: All mining mobs now remember who hit them, so target prioritization
works as intended
/🆑
This commit is contained in:
CabinetOnFire
2026-06-25 18:00:43 +02:00
committed by GitHub
parent 9271bb8ba4
commit d9b2026afc
8 changed files with 1 additions and 7 deletions
@@ -43,7 +43,6 @@
. = ..()
add_traits(list(TRAIT_SPACEWALK, TRAIT_SWIMMER, TRAIT_FENCE_CLIMBER, TRAIT_SNOWSTORM_IMMUNE), INNATE_TRAIT)
AddElement(/datum/element/ai_retaliate)
AddElement(/datum/element/swabable, CELL_LINE_TABLE_BEAR, CELL_VIRUS_TABLE_GENERIC_MOB, 1, 5)
AddElement(/datum/element/change_force_on_death, move_force = MOVE_FORCE_DEFAULT, move_resist = MOVE_RESIST_DEFAULT, pull_force = PULL_FORCE_DEFAULT)
AddElement(/datum/element/footstep, footstep_type = FOOTSTEP_MOB_CLAW)
@@ -58,7 +58,6 @@
ADD_TRAIT(src, TRAIT_WOUND_LICKER, INNATE_TRAIT)
AddElement(/datum/element/footstep, FOOTSTEP_MOB_CLAW)
AddElement(/datum/element/ai_flee_while_injured)
AddElement(/datum/element/ai_retaliate)
if(can_tame)
make_tameable()