From 30a6c3727798e93f2795e1deb96571a1ffd5e59f Mon Sep 17 00:00:00 2001 From: Kam Date: Thu, 25 Jan 2024 20:17:46 -0500 Subject: [PATCH] Add Combat Policy changes to API --- java/noppes/npcs/api/entity/ICustomNpc.java | 32 +++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/java/noppes/npcs/api/entity/ICustomNpc.java b/java/noppes/npcs/api/entity/ICustomNpc.java index 9f9adb3..3b4815b 100644 --- a/java/noppes/npcs/api/entity/ICustomNpc.java +++ b/java/noppes/npcs/api/entity/ICustomNpc.java @@ -452,6 +452,38 @@ public interface ICustomNpc extends IEntityLiving { */ String getTacticalVariantName(); + /** + * + * @return Returns the name of the NPC's combat policy. + */ + String getCombatPolicyName(); + + /** + * + * @param policy Changes the combat policy of the NPC. + * 0 - Flip + * 1 - Brute + * 2 - Stubborn + * + */ + void setCombatPolicy(int policy); + + /** + * + * @return Returns the ombat policy of the NPC. + * 0 - Flip + * 1 - Brute + * 2 - Stubborn + * + */ + int getCombatPolicy(); + + /** + * + * @param policy Sets the NPC's tactical variant by name. + */ + void setCombatPolicy(String policy); + /** * * @param tacticalRadius Sets the radius in which the tactical variant is affected, if any. Effective for all tactical variants except Rush and None.