Skip to content

Commit

Permalink
add(debug stuff)
Browse files Browse the repository at this point in the history
  • Loading branch information
nvb-uy committed May 13, 2024
1 parent d302ae0 commit 1edaa79
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public void applyUpdateEffect(LivingEntity entity, int amplifier) {
double critChance = entity.getAttributeValue(SpellPowerMechanics.CRITICAL_CHANCE.attribute) / 100;

if (random.nextDouble() < critChance) damage *= CONFIG.damage_critical_scaling;
DeathKnights.LOGGER.info("Damage: " + damage+ " Crit Chance: " + critChance);

if (entity.age % CONFIG.tick_rate == 0)
for (LivingEntity e : world.getEntitiesByClass(LivingEntity.class, entity.getBoundingBox().expand(CONFIG.radius, CONFIG.radius, CONFIG.radius), (e) -> e != entity)) {
Expand Down

0 comments on commit 1edaa79

Please sign in to comment.