More work on the Item Experience Book. Changed the names of the Sanguimancy rituals to be more... majestic.
This commit is contained in:
parent
1d14692a93
commit
7a119adaf9
3 changed files with 36 additions and 2 deletions
|
@ -78,6 +78,7 @@ import WayofTime.bloodmagic.demonAura.WillChunk;
|
|||
import WayofTime.bloodmagic.demonAura.WorldDemonWillHandler;
|
||||
import WayofTime.bloodmagic.entity.projectile.EntitySentientArrow;
|
||||
import WayofTime.bloodmagic.item.ItemAltarMaker;
|
||||
import WayofTime.bloodmagic.item.ItemExperienceBook;
|
||||
import WayofTime.bloodmagic.item.ItemInscriptionTool;
|
||||
import WayofTime.bloodmagic.item.ItemUpgradeTome;
|
||||
import WayofTime.bloodmagic.item.armour.ItemLivingArmour;
|
||||
|
@ -787,5 +788,18 @@ public class EventHandler
|
|||
StatTrackerExperience.incrementCounter(armour, event.getOrb().xpValue);
|
||||
}
|
||||
}
|
||||
|
||||
if (!player.worldObj.isRemote)
|
||||
{
|
||||
for (ItemStack stack : player.inventory.mainInventory)
|
||||
{
|
||||
if (stack != null && stack.getItem() instanceof ItemExperienceBook)
|
||||
{
|
||||
ItemExperienceBook.addExperience(stack, event.getOrb().xpValue);
|
||||
event.getOrb().xpValue = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue