Added infrastructure and rendering for the Soul Arrow.
This commit is contained in:
parent
22a0e2b8a9
commit
1d6edae50e
11 changed files with 300 additions and 0 deletions
|
@ -41,6 +41,7 @@ import WayofTime.bloodmagic.api.soul.ISoulWeapon;
|
|||
import WayofTime.bloodmagic.api.soul.PlayerSoulHandler;
|
||||
import WayofTime.bloodmagic.api.util.helper.PlayerHelper;
|
||||
import WayofTime.bloodmagic.block.BlockAltar;
|
||||
import WayofTime.bloodmagic.entity.projectile.EntitySoulArrow;
|
||||
import WayofTime.bloodmagic.item.ItemAltarMaker;
|
||||
import WayofTime.bloodmagic.item.armour.ItemLivingArmour;
|
||||
import WayofTime.bloodmagic.item.gear.ItemPackSacrifice;
|
||||
|
@ -241,6 +242,8 @@ public class EventHandler
|
|||
{
|
||||
EntityPlayer attackedPlayer = (EntityPlayer) attackedEntity;
|
||||
|
||||
// Living Armour handling
|
||||
|
||||
boolean hasFullSet = true;
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
|
@ -269,10 +272,18 @@ public class EventHandler
|
|||
}
|
||||
}
|
||||
|
||||
if (sourceEntity instanceof EntitySoulArrow)
|
||||
{
|
||||
// Soul Weapon handling
|
||||
((EntitySoulArrow) sourceEntity).reimbursePlayer();
|
||||
}
|
||||
|
||||
if (sourceEntity instanceof EntityPlayer)
|
||||
{
|
||||
EntityPlayer player = (EntityPlayer) sourceEntity;
|
||||
|
||||
// Living Armour handling
|
||||
|
||||
boolean hasFullSet = true;
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue