-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove biter summon goal and require temperature to be high for destroy heat sources * move frostologer class to own package * move frost wand attack to own package * move frost wand cast goal to own package * dont turn water logged blocks to ice * adjust frostologer fight freezing mechanics - frostologer gains freezing when they hit root their target - frostologer is warmed each tick they are channeling their blizzard spell - frostologer no longer has passive freezing - frostologer equipment can be enchanted - frostologer has a max temp of 0, even with scorchful installed * use heat drain config value for warming * make frostologer icicle spell cooldown longer * make frost wand hit cooling configurable * start rendering frost layers earlier * freeze damage no longer breaks root * scale frostologer enchantment power by local difficulty * add enervation to frostologer spawn enchantment provider * dispense a normal vault reward from boss vault * update destroy heat sources tests * fix frost layer rendering * fix issues found in self review
- Loading branch information
1 parent
76120a0
commit fe892cb
Showing
23 changed files
with
241 additions
and
317 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/client/java/com/github/thedeathlycow/frostiful/client/model/FrostologerEntityModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...github/thedeathlycow/frostiful/client/render/feature/FrostologerCloakFeatureRenderer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../github/thedeathlycow/frostiful/client/render/feature/FrostologerEyesFeatureRenderer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...github/thedeathlycow/frostiful/client/render/feature/FrostologerFrostFeatureRenderer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/com/github/thedeathlycow/frostiful/entity/frostologer/FrostWandAttackGoal.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.github.thedeathlycow.frostiful.entity.frostologer; | ||
|
||
import net.minecraft.entity.ai.goal.AttackGoal; | ||
|
||
class FrostWandAttackGoal extends AttackGoal { | ||
private final FrostologerEntity frostologerEntity; | ||
|
||
public FrostWandAttackGoal(FrostologerEntity frostologerEntity) { | ||
super(frostologerEntity); | ||
this.frostologerEntity = frostologerEntity; | ||
} | ||
|
||
@Override | ||
public boolean canStart() { | ||
return frostologerEntity.isTargetRooted() | ||
&& super.canStart(); | ||
} | ||
|
||
} |
57 changes: 57 additions & 0 deletions
57
src/main/java/com/github/thedeathlycow/frostiful/entity/frostologer/FrostWandCastGoal.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
package com.github.thedeathlycow.frostiful.entity.frostologer; | ||
|
||
import com.github.thedeathlycow.frostiful.Frostiful; | ||
import com.github.thedeathlycow.frostiful.registry.FItems; | ||
import com.github.thedeathlycow.frostiful.registry.FSoundEvents; | ||
import net.minecraft.entity.ai.goal.ProjectileAttackGoal; | ||
import net.minecraft.util.Hand; | ||
|
||
class FrostWandCastGoal extends ProjectileAttackGoal { | ||
|
||
private final FrostologerEntity frostologerEntity; | ||
|
||
public FrostWandCastGoal(FrostologerEntity frostologer, double mobSpeed, int intervalTicks, float maxShootRange) { | ||
super(frostologer, mobSpeed, intervalTicks, maxShootRange); | ||
this.frostologerEntity = frostologer; | ||
} | ||
|
||
@Override | ||
public boolean canStart() { | ||
return super.canStart() | ||
&& frostologerEntity.hasTarget() | ||
&& !frostologerEntity.isTargetRooted() | ||
&& frostologerEntity.getMainHandStack().isOf(FItems.FROST_WAND); | ||
} | ||
|
||
@Override | ||
public void start() { | ||
super.start(); | ||
frostologerEntity.setAttacking(true); | ||
frostologerEntity.setCurrentHand(Hand.MAIN_HAND); | ||
this.startUsingFrostWand(); | ||
} | ||
|
||
@Override | ||
public void stop() { | ||
super.stop(); | ||
frostologerEntity.setAttacking(false); | ||
frostologerEntity.clearActiveItem(); | ||
this.stopUsingFrostWand(); | ||
if (frostologerEntity.isTargetRooted()) { | ||
int cooling = -Frostiful.getConfig().combatConfig.getFrostologerCoolingFromFrostWandHit(); | ||
frostologerEntity.thermoo$addTemperature(cooling); | ||
} | ||
} | ||
|
||
private void startUsingFrostWand() { | ||
frostologerEntity.playSound( | ||
FSoundEvents.ITEM_FROST_WAND_PREPARE_CAST, | ||
1.0f, 1.0f | ||
); | ||
frostologerEntity.getDataTracker().set(FrostologerEntity.IS_USING_FROST_WAND, true); | ||
} | ||
|
||
private void stopUsingFrostWand() { | ||
frostologerEntity.getDataTracker().set(FrostologerEntity.IS_USING_FROST_WAND, false); | ||
} | ||
} |
Oops, something went wrong.