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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user