Adds a smaller size targeting strategy, makes crabs use them (#80246)

## About The Pull Request

The PR that added crabs said crabs are now small creatures, and will
hunt tiny creatures. However, their targeting strategy was
`our_our_smaller`, so a group of crabs ended up eating each other. This
PR creates a new targeting strategy, and applies it to the crab AI.

## Why It's Good For The Game

Puts an end to crabbibalism.

## Changelog

🆑
fix: Crabs will properly only target Tiny creatures
/🆑
This commit is contained in:
Profakos
2023-12-13 21:21:10 +01:00
committed by GitHub
parent 82101a5586
commit e65397bb7c
2 changed files with 5 additions and 1 deletions
@@ -126,6 +126,10 @@
find_smaller = FALSE
inclusive = FALSE
/datum/targeting_strategy/basic/of_size/smaller
inclusive = FALSE
/// Makes the mob only attack their own faction. Useful mostly if their attacks do something helpful (e.g. healing touch).
/datum/targeting_strategy/basic/same_faction
+1 -1
View File
@@ -78,7 +78,7 @@
/datum/ai_controller/basic_controller/crab
blackboard = list(
BB_ALWAYS_IGNORE_FACTION = TRUE,
BB_TARGETING_STRATEGY = /datum/targeting_strategy/basic/of_size/ours_or_smaller,
BB_TARGETING_STRATEGY = /datum/targeting_strategy/basic/of_size/smaller,
BB_FLEE_TARGETING_STRATEGY = /datum/targeting_strategy/basic,
)