Files
Bubberstation/code/datums/ai/basic_mobs/basic_subtrees
SkyratBot d0a9c1c004 [MIRROR] Rats can attack obstacles between them and their target [MDB IGNORE] (#18214)
* Rats can attack obstacles between them and their target (#71741)

## About The Pull Request

Fixes #71568
I wrote this for basic mob carp but it will be needed in a lot of
places.
Rats used to be able to attack windows or dense objects between them and
their target, but basic mobs didn't have this capability.
Now they do.

Behind the scenes, an important change is that this adds
`AI_BEHAVIOR_CAN_PLAN_DURING_EXECUTION` to
`/datum/ai_behavior/basic_melee_attack`.
This is because `basic_melee_attack` essentially enters a loop which
won't end until the target is dead or lost, but there are plenty of
circumstances where we'll actually want to interrupt this to do
something else. Such as attack windows.

## Why It's Good For The Game

Restores accidentally removed behaviour.
Will likely be required for future basic mob development.

## Changelog

🆑
fix: Rats will once again attempt to attack windows or other dense
objects separating them from their targets.
/🆑

* Rats can attack obstacles between them and their target

Co-authored-by: Jacquerel <hnevard@gmail.com>
2022-12-31 10:25:45 -08:00
..