Skip to content

Commit

Permalink
fixed bracket calculation for SentientWrath Will cost
Browse files Browse the repository at this point in the history
  • Loading branch information
dphaldes committed Nov 24, 2023
1 parent fcd62b7 commit a3bd46a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [0.4.3] - 2023-11-25

### Fixed

- Fixed crash due to no will when using SentientWrath

## [0.4.2] - 2023-11-23

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
org.gradle.jvmargs=-Xmx4G
org.gradle.daemon=false
#
mod_version=0.4.2
mod_version=0.4.3
mod_id=tomeofblood
mod_authors=mystchonky
mod_group_id=com.mystchonky.tomeofblood
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void onResolveEntity(EntityHitResult rayTraceResult, Level world, @NotNul
}

// Consume will
double willCost = ItemSentientSword.soulDrainPerSwing[bracket] * targets.size() * (targets.size() > 1 ? 0.75 : 1);
double willCost = ItemSentientSword.soulDrainPerSwing[Math.max(bracket, 0)] * targets.size() * (targets.size() > 1 ? 0.75 : 1);
PlayerDemonWillHandler.consumeDemonWill(type, player, willCost);

//trigger on hit
Expand Down

0 comments on commit a3bd46a

Please sign in to comment.