Ensure corporeal beast takes half-damage from non-spears

Ensure familiars enter the corporeal beast arena
Corrected Vesta's spear attack rate
This commit is contained in:
Avi Weinstock
2023-06-02 08:35:34 +00:00
committed by Ryan
parent c266e9ecaa
commit aec9476438
6 changed files with 81 additions and 78 deletions
@@ -41,25 +41,6 @@ public abstract class AbstractNPC extends NPC implements Plugin<Object> {
super.setWalks(autowalk);
}
/**
* Configures default boss data.
*/
public void configureBossData() {
getProperties().setNPCWalkable(true);
getProperties().setCombatTimeOut(2);
if (!isAggressive()) {
setAggressive(true);
setDefaultBehavior();
}
if (getAggressiveHandler() != null) {
getAggressiveHandler().setChanceRatio(6);
getAggressiveHandler().setAllowTolerance(false);
getAggressiveHandler().setTargetSwitching(true);
getAggressiveHandler().setRadius(64);
}
walkRadius = 64;
}
@Override
public Plugin<Object> newInstance(Object arg) throws Throwable {
for (int id : getIds()) {
@@ -104,4 +85,4 @@ public abstract class AbstractNPC extends NPC implements Plugin<Object> {
return mapping.get(npcId);
}
}
}
@@ -241,6 +241,25 @@ public class NPC extends Entity {
// getViewport().setRegion(null);
}
/**
* Configures default boss data.
*/
public void configureBossData() {
getProperties().setNPCWalkable(true);
getProperties().setCombatTimeOut(2);
if (!isAggressive()) {
setAggressive(true);
setDefaultBehavior();
}
if (getAggressiveHandler() != null) {
getAggressiveHandler().setChanceRatio(6);
getAggressiveHandler().setAllowTolerance(false);
getAggressiveHandler().setTargetSwitching(true);
getAggressiveHandler().setRadius(64);
}
walkRadius = 64;
}
/**
* Initializes the configurations.
*/