Initial stages of Omega being worked on - binding of human and demon at 5%.
This commit is contained in:
parent
c0abd69a2a
commit
316a79fab8
16 changed files with 348 additions and 49 deletions
|
@ -39,13 +39,25 @@ public abstract class OmegaArmour extends BoundArmour
|
|||
public void onArmorTick(World world, EntityPlayer player, ItemStack itemStack)
|
||||
{
|
||||
super.onArmorTick(world, player, itemStack);
|
||||
if(!this.decrementDuration(itemStack))
|
||||
{
|
||||
ItemStack stack = this.getContainedArmourStack(itemStack);
|
||||
player.inventory.armorInventory[3-this.armorType] = stack;
|
||||
}
|
||||
//
|
||||
// if(world.getWorldTime() % 20 == 0 && !world.isRemote)
|
||||
// {
|
||||
// NewPacketHandler.INSTANCE.sendTo(NewPacketHandler.getReagentBarPacket(ReagentRegistry.aquasalusReagent, this.getDuration(itemStack), 100), (EntityPlayerMP)player);
|
||||
// }
|
||||
//
|
||||
// if(!this.decrementDuration(itemStack))
|
||||
// {
|
||||
// ItemStack stack = this.getContainedArmourStack(itemStack);
|
||||
// player.inventory.armorInventory[3-this.armorType] = stack;
|
||||
// }
|
||||
}
|
||||
|
||||
public void revertArmour(EntityPlayer player, ItemStack itemStack)
|
||||
{
|
||||
ItemStack stack = this.getContainedArmourStack(itemStack);
|
||||
player.inventory.armorInventory[3-this.armorType] = stack;
|
||||
}
|
||||
|
||||
public ItemStack getSubstituteStack(ItemStack boundStack)
|
||||
{
|
||||
ItemStack omegaStack = new ItemStack(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue