From 3f338ea49a86530b22f9d1ad7de30155ae282615 Mon Sep 17 00:00:00 2001 From: Kam Date: Sat, 3 Feb 2024 03:50:43 -0500 Subject: [PATCH] Tactical Chance --- src/main/java/noppes/npcs/DataAI.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/noppes/npcs/DataAI.java b/src/main/java/noppes/npcs/DataAI.java index cd0a801b6..8793791f9 100644 --- a/src/main/java/noppes/npcs/DataAI.java +++ b/src/main/java/noppes/npcs/DataAI.java @@ -30,6 +30,7 @@ public class DataAI { public EnumCombatPolicy combatPolicy = EnumCombatPolicy.Flip; public int useRangeMelee = 0; public int tacticalRadius = 8; + public int tacticalChance = 5; public int movementType = 0; public double flySpeed = 1.0D; @@ -75,7 +76,8 @@ public class DataAI { canFireIndirect = compound.getInteger("FireIndirect"); useRangeMelee = compound.getInteger("RangeAndMelee"); distanceToMelee = compound.getInteger("DistanceToMelee"); - tacticalRadius = compound.getInteger("TacticalRadius"); + tacticalRadius = compound.getInteger("TacticalRadius"); + tacticalChance = compound.getInteger("TacticalChance"); movingPause = compound.getBoolean("MovingPause"); ignoreCobweb = compound.getBoolean("IgnoreCobweb"); npcInteracting = compound.getBoolean("npcInteracting"); @@ -145,6 +147,7 @@ public class DataAI { compound.setInteger("RangeAndMelee", useRangeMelee); compound.setInteger("DistanceToMelee", distanceToMelee); compound.setInteger("TacticalRadius", tacticalRadius); + compound.setInteger("TacticalChance", tacticalChance); compound.setBoolean("MovingPause", movingPause); compound.setBoolean("IgnoreCobweb", ignoreCobweb); compound.setBoolean("npcInteracting", npcInteracting);