Skip to content

Use general enemy AI goal instead of hard code #59

Open
ptran779 wants to merge 1 commit into
justinwon777:mainfrom
ptran779:main
Open

Use general enemy AI goal instead of hard code #59
ptran779 wants to merge 1 commit into
justinwon777:mainfrom
ptran779:main

Conversation

@ptran779

@ptran779 ptran779 commented Apr 5, 2025

Copy link
Copy Markdown

Change alertHostleGoal: instead of 18 classes enum hardcode, change to 1 unified goal with general enemy class. This allows much greater mod compat for any hostile mod type and a cleaner AI goal list.

This is mostly when you have other mods that introduce hostile mobs, the Alert mode become useless. This change allows companions to target any hostile mobs (as long as it's extended from Enemy class).

Note that I only update the 1.20.1 since that's the only version I've used before. It may/probably work with other version, so you have to test it later

…o 1 unified goal with general enermy class. This allow much greater mod compat for any hostile mod type and cleaner ai goal list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant