Skip to content

Commit

Permalink
Make velocity no longer impact inaccuracy of projectile launchers (#5107
Browse files Browse the repository at this point in the history
)
  • Loading branch information
KnightMiner committed Apr 27, 2023
1 parent 4256c29 commit e6bd588
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,9 @@ public static void finishUsingItem(IToolStackView tool) {
tool.getPersistentData().remove(ACTIVE_MODIFIER);
}

/** Calculates inaccuracy from the conditional tool stat */
/** Calculates inaccuracy from the conditional tool stat. TODO: reconsidering velocity impacting inaccuracy, remove parameter in 1.19 */
@SuppressWarnings("unused")
public static float getInaccuracy(IToolStackView tool, LivingEntity living, float velocity) {
return 3 * (1 / ConditionalStatModifierHook.getModifiedStat(tool, living, ToolStats.ACCURACY) - 1) * velocity;
return 3 * (1 / ConditionalStatModifierHook.getModifiedStat(tool, living, ToolStats.ACCURACY) - 1);
}
}

0 comments on commit e6bd588

Please sign in to comment.