Skip to content

Commit

Permalink
Remove difficulty
Browse files Browse the repository at this point in the history
  • Loading branch information
IcarussOne committed Jan 12, 2025
1 parent 1ab5e35 commit 38259fd
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/main/java/twilightforest/entity/boss/EntityTFNaga.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class EntityTFNaga extends EntityMob implements IEntityMultiPart {
public static final ResourceLocation LOOT_TABLE = TwilightForestMod.prefix("entities/naga");

private static final int TICKS_BEFORE_HEALING = 600;
private static final int MAX_SEGMENTS = 12;
private static final int MAX_SEGMENTS = 15;
private static final int LEASH_X = 46;
private static final int LEASH_Y = 7;
private static final int LEASH_Z = 46;
Expand Down Expand Up @@ -104,18 +104,6 @@ protected void setDazed(boolean daze) {
dataManager.set(DATA_DAZE, daze);
}

private float getMaxHealthPerDifficulty() {
switch (world.getDifficulty()) {
case EASY:
return 120;
default:
case NORMAL:
return 200;
case HARD:
return 250;
}
}

@Override
public void setCustomNameTag(String name) {
super.setCustomNameTag(name);
Expand Down Expand Up @@ -432,7 +420,7 @@ public void onLivingUpdate() {
@Override
protected void applyEntityAttributes() {
super.applyEntityAttributes();
this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(getMaxHealthPerDifficulty());
this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(350.0D);
this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(DEFAULT_SPEED);
this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE).setBaseValue(5.0D);
this.getEntityAttribute(SharedMonsterAttributes.FOLLOW_RANGE).setBaseValue(80.0D);
Expand Down

0 comments on commit 38259fd

Please sign in to comment.