Trigger unlock of tiers handbook section when a wand levels up, in addition to finding a tome of arcana

This commit is contained in:
Electroblob77
2020-06-25 11:24:28 +01:00
parent e6696a1758
commit 43690ace29
3 changed files with 6 additions and 0 deletions
@@ -498,6 +498,7 @@ public class ItemWand extends Item implements IWorkbenchItem, ISpellCastingItem,
if(excess >= 0 && excess < progression){
// ...display a message above the player's hotbar
caster.playSound(WizardrySounds.ITEM_WAND_LEVELUP, 1.25f, 1);
WizardryAdvancementTriggers.wand_levelup.triggerFor(caster);
if(!world.isRemote)
caster.sendMessage(new TextComponentTranslation("item." + Wizardry.MODID + ":wand.levelup",
this.getItemStackDisplayName(stack), nextTier.getNameForTranslationFormatted()));