2.2.5
add missing local jars to git
This commit is contained in:
1 parent
770b5a607e
commit
758fa58b1b
78 files changed
+182
-4
No files matched your search
+8
@@ -46,6 +46,7 @@ public class AlphaMantisEntity extends MantisEntity {
|
||||
private static final double FORCED_RETURN_RADIUS = 144.0D;
|
||||
private static final int RESET_DELAY_TICKS = 300;
|
||||
private static final double HOME_RETURN_SPEED = 1.05D;
|
||||
private static final int HOME_REPATH_INTERVAL_TICKS = 20;
|
||||
|
||||
private final ServerBossEvent bossEvent =
|
||||
new com.craisinlord.antarchy.content.boss.EntityLinkedServerBossEvent(this.getUUID(), Component.translatable("entity.antarchy.alpha_mantis"), BossEvent.BossBarColor.GREEN, BossEvent.BossBarOverlay.PROGRESS);
|
||||
@@ -53,6 +54,7 @@ public class AlphaMantisEntity extends MantisEntity {
|
||||
private int summonCooldownTicks;
|
||||
private int phaseTransitionTicks;
|
||||
private int disengageTicks;
|
||||
private int homeRepathCooldown;
|
||||
private boolean halfHealthTransitionComplete;
|
||||
@Nullable
|
||||
private BlockPos encounterHome;
|
||||
@@ -386,6 +388,7 @@ public class AlphaMantisEntity extends MantisEntity {
|
||||
|
||||
if (target != null) {
|
||||
this.disengageTicks = 0;
|
||||
this.homeRepathCooldown = 0;
|
||||
if (this.isOutsideLeashRadius()) {
|
||||
this.resetEncounter(true);
|
||||
}
|
||||
@@ -448,6 +451,11 @@ public class AlphaMantisEntity extends MantisEntity {
|
||||
return;
|
||||
}
|
||||
Vec3 homeCenter = Vec3.atCenterOf(this.encounterHome);
|
||||
if (this.homeRepathCooldown > 0) {
|
||||
this.homeRepathCooldown--;
|
||||
return;
|
||||
}
|
||||
this.homeRepathCooldown = HOME_REPATH_INTERVAL_TICKS;
|
||||
if (this.distanceToSqr(homeCenter) > FORCED_RETURN_RADIUS * FORCED_RETURN_RADIUS) {
|
||||
this.moveTo(homeCenter.x, this.encounterHome.getY(), homeCenter.z, this.getYRot(), this.getXRot());
|
||||
this.setDeltaMovement(Vec3.ZERO);
|
||||
|
||||
+8
@@ -105,6 +105,7 @@ public class EmperorScorpionEntity extends Monster implements GeoEntity {
|
||||
private static final double FORCED_RETURN_RADIUS = 144.0D;
|
||||
private static final int RESET_DELAY_TICKS = 240;
|
||||
private static final double HOME_RETURN_SPEED = 1.0D;
|
||||
private static final int HOME_REPATH_INTERVAL_TICKS = 20;
|
||||
private static final double NEARBY_SCORPION_CHECK_RADIUS = 32.0D;
|
||||
|
||||
private static final ResourceKey<Level> THORAXIS_KEY =
|
||||
@@ -137,6 +138,7 @@ public class EmperorScorpionEntity extends Monster implements GeoEntity {
|
||||
private int hardenHealTicks;
|
||||
private int hardenSummonedScorpions;
|
||||
private int disengageTicks;
|
||||
private int homeRepathCooldown;
|
||||
private boolean attackDamageApplied;
|
||||
private AttackType currentAttack = AttackType.NONE;
|
||||
private HardenPhase hardenPhase = HardenPhase.NONE;
|
||||
@@ -797,6 +799,7 @@ public class EmperorScorpionEntity extends Monster implements GeoEntity {
|
||||
|
||||
if (target != null) {
|
||||
this.disengageTicks = 0;
|
||||
this.homeRepathCooldown = 0;
|
||||
if (this.isOutsideLeashRadius()) {
|
||||
this.resetEncounter(true);
|
||||
}
|
||||
@@ -869,6 +872,11 @@ public class EmperorScorpionEntity extends Monster implements GeoEntity {
|
||||
return;
|
||||
}
|
||||
Vec3 homeCenter = Vec3.atCenterOf(this.encounterHome);
|
||||
if (this.homeRepathCooldown > 0) {
|
||||
this.homeRepathCooldown--;
|
||||
return;
|
||||
}
|
||||
this.homeRepathCooldown = HOME_REPATH_INTERVAL_TICKS;
|
||||
if (this.distanceToSqr(homeCenter) > FORCED_RETURN_RADIUS * FORCED_RETURN_RADIUS) {
|
||||
this.moveTo(homeCenter.x, homeCenter.y, homeCenter.z, this.getYRot(), this.getXRot());
|
||||
this.setDeltaMovement(Vec3.ZERO);
|
||||
|
||||
Reference in new issue
Block a user