Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hostile AI fixes #2628

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Hostile AI fixes #2628

wants to merge 2 commits into from

Conversation

Halonexus
Copy link
Collaborator

@Halonexus Halonexus commented Dec 20, 2024

About The Pull Request

Fixes some bugs with the new hostile ai, improves its performance a bit.
Cleaned up the obsolete MeleeAction proc that was needed for the old rapid_melee system in various mob files.
Distorted Form used to aggro through walls onto people it cant see and if they are in its close attack range it couldnt really leave its cell and only uses melee skills, now it will use ranged skills and jump attacks so long as it cant see any enemies. Fixed its toad form shifting pixel_x after jumps making it look like it occupies 2 tiles.
Fixed some possible runtime errors with Ebony Apple attacks.
Added AttackCondition proc for putting custom checks that are evaluated before AttackingTarget goes through.
Added a condition for amber dusks making them only be able to hit targets on the 5 tiles near their mouth. For solo this doesnt really change much as their turning and attacking are on separate timers but in a group people will be able to hit them from the back until aggro switches.

Why It's Good For The Game

Fixes some bugs and AI improvements.

Changelog

🆑
fix: Fixed some hostile ai issues.
fix: Distorted Form shouldnt get stuck in its cell now.
fix: Fixed Ebony Apple attacks sometimes causing errors if target is deleted mid attack.
code: Removed MeleeAction proc from hostiles.
tweak: Amber dusk worms can only attack the 5 tiles in front of them.
/:cl:

@Kitsunemitsu Kitsunemitsu added Code improvement Code is now easier to copy paste. Fix There was a bug, and we fixed it! labels Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code improvement Code is now easier to copy paste. Fix There was a bug, and we fixed it!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants