Skip to content

Commit

Permalink
sentient harm glyph consumes will
Browse files Browse the repository at this point in the history
  • Loading branch information
dphaldes committed Nov 3, 2023
1 parent 88551ae commit 07ca279
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [0.3.2] - Unreleased

## Changed

- Updated textures for Heretics Armor! Thanks Gronglegrowth/Eset!
- Sentient Harm Glyph now consumes will when on successful damage. The values are similar to Sentient Sword.

## [0.3.1] - 2023-10-30

### Changed
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
package com.mystchonky.tomeofblood.common.glyphs;

import com.hollingsworth.arsnouveau.api.spell.*;
import com.hollingsworth.arsnouveau.common.spell.augment.*;
import com.hollingsworth.arsnouveau.api.spell.AbstractAugment;
import com.hollingsworth.arsnouveau.api.spell.AbstractEffect;
import com.hollingsworth.arsnouveau.api.spell.IDamageEffect;
import com.hollingsworth.arsnouveau.api.spell.SpellContext;
import com.hollingsworth.arsnouveau.api.spell.SpellResolver;
import com.hollingsworth.arsnouveau.api.spell.SpellSchool;
import com.hollingsworth.arsnouveau.api.spell.SpellStats;
import com.hollingsworth.arsnouveau.common.spell.augment.AugmentAmplify;
import com.hollingsworth.arsnouveau.common.spell.augment.AugmentDampen;
import com.hollingsworth.arsnouveau.common.spell.augment.AugmentDurationDown;
import com.hollingsworth.arsnouveau.common.spell.augment.AugmentExtendTime;
import com.hollingsworth.arsnouveau.common.spell.augment.AugmentFortune;
import com.hollingsworth.arsnouveau.setup.registry.ModPotions;
import com.mystchonky.tomeofblood.TomeOfBlood;
import com.mystchonky.tomeofblood.common.registry.IntegrationRegistry;
Expand Down Expand Up @@ -67,7 +77,10 @@ public void onResolveEntity(EntityHitResult rayTraceResult, Level world, @NotNul
}

// TODO: Change to bloodmagic damage source later
attemptDamage(world, shooter, spellStats, spellContext, resolver, entity, buildDamageSource(world, shooter), damage);
boolean damaged = attemptDamage(world, shooter, spellStats, spellContext, resolver, entity, buildDamageSource(world, shooter), damage);
if (damaged) {
PlayerDemonWillHandler.consumeDemonWill(type, player, ItemSentientSword.soulDrainPerSwing[bracket]);
}
}
}

Expand Down

0 comments on commit 07ca279

Please sign in to comment.