DenizenScript / Denizen

NPC and general Spigot scripting, using the Denizen Scripting Language!
https://denizenscript.com/
MIT License
216 stars 106 forks source link

Warden anger controls #2602

Closed tal5 closed 8 months ago

tal5 commented 8 months ago

Requested on Discord.

Additions

[!NOTE]

Naming

Since these are all global tags/mechs, not sure if we want more specific naming? I can see these maybe conflicting in the future.

[!NOTE]

Anger mechanisms

The EntityTag.anger mech internally just does EntityTag.clear_anger and EntityTag.increase_anger, which technically means we can remove both of these in favor of it/the other way around? but considering it does some decently complex warden AI stuff internally being able to do these operations separately is probably a good idea - let me know if any of these should be removed.

[!NOTE]

Highest anger tag

The highest anger tag is a little weird internally (entity == null ? this.highestAnger : this.angerBySuspect.getInt(entity) with it's current target), tried documenting & naming it but let me know if you have any suggestions.