Skip to content

Commit

Permalink
reduce earthquake and black hole effects at ridiculous power
Browse files Browse the repository at this point in the history
  • Loading branch information
iron431 committed Oct 28, 2023
1 parent 0c3ccad commit 951be4e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 20 deletions.
23 changes: 5 additions & 18 deletions LATEST_CHANGES.MD
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
### Additions
- Added Mana Regen attribute
- Added the Amethyst Resonance Charm, a craftable necklace that gives +15% mana regeneration
-

### Changes
- Buff Magic Arrow's base damage by 5
- Add CastSource to SpellCastEvent for developers
- Rework Priest Armor Texture, courtesy of Crydigo
- Tweak most jewelry textures
- Any armor can now be upgraded instead of only mage armor (can_be_upgraded tag has been removed)
- Spectral Hammer debris reduced

- Black Hole radius scales less significantly with spell power
-
### Fixes
- Fixed inconsistent Magic Arrow block penetration
- Fixed the two-handed sword models when using left hand mode
- Mobs can no longer detect your armor when affected by True Invisibility
- Fixed geckolib armor anchor points causing misaligned armor models when the player is animating
- Fixed JEI recipe autocomplete exploit
- Fixed Raise Dead spell not being able to find suitable ground locations at y < 0
-

### API
- Added InscribeSpellEvent, courtesy of Silvertide7
- Added ChangeManaEvent
- Added SpellDamageEvent
-
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void tick() {
if (!level.isClientSide) {
var radius = this.getRadius();
var level = this.level;
int intensity = (int) (radius * radius * .09f);
int intensity = Math.min((int) (radius * radius * .09f), 15);
for (int i = 0; i < intensity; i++) {
Vec3 vec3 = this.position().add(uniformlyDistributedPointInRadius(radius));
BlockPos blockPos = new BlockPos(Utils.moveToRelativeGroundLevel(level, vec3, 4)).below();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private float getDamage(int spellLevel, LivingEntity entity) {
}

private float getRadius(int spellLevel, LivingEntity entity) {
return (2 * getLevel(spellLevel, entity) + 4) * getSpellPower(spellLevel, entity);
return (2 * getLevel(spellLevel, entity) + 4) * (1 + .125f * getSpellPower(spellLevel, entity));
}

@Override
Expand Down

0 comments on commit 951be4e

Please sign in to comment.