Added an auto-crafting ritual
Fixed Blood Light sigil glitches Fixed some issues with the Reagent HP bar not draining correctly - what was I thinking?!?
This commit is contained in:
parent
d1fc806113
commit
3d89bd6b90
13 changed files with 503 additions and 55 deletions
|
@ -161,6 +161,8 @@ public abstract class OmegaArmour extends BoundArmour
|
|||
SoulNetworkHandler.checkAndSetItemOwner(omegaStack, SoulNetworkHandler.getOwnerName(boundStack));
|
||||
this.setItemEnchantability(omegaStack, Math.min(enchantability, 70));
|
||||
|
||||
EnchantmentHelper.setEnchantments(new HashMap(), omegaStack);
|
||||
|
||||
List enchantList = new ArrayList();
|
||||
|
||||
int adjustedEnchantLevel = Math.min(enchantmentLevel, 30);
|
||||
|
|
|
@ -124,11 +124,11 @@ public class OmegaArmourEarth extends OmegaArmour
|
|||
|
||||
public float getHealthBoostModifierForLevel(int yLevel)
|
||||
{
|
||||
return (float) (0.05 * Math.max(-0.5, -((float)yLevel)/64f * 1.5f + 5.5f));
|
||||
return 0.05f * (yLevel <= 50 ? 1.5f : yLevel >= 100 ? -0.5f : 0.5f);
|
||||
}
|
||||
|
||||
public float getDamageModifierForLevel(int yLevel)
|
||||
{
|
||||
return 0.02f * ((((float)yLevel)/64f) * 1.5f - 1);
|
||||
return 0.03f * (yLevel <= 50 ? 1.5f : yLevel >= 100 ? -0.5f : 0.5f);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -49,7 +49,6 @@ public class ItemBloodLightSigil extends EnergyItems implements IHolding
|
|||
@Override
|
||||
public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
|
||||
{
|
||||
System.out.println("Being called");
|
||||
if(!EnergyItems.checkAndSetItemOwner(par1ItemStack, par2EntityPlayer) || !EnergyItems.syphonBatteries(par1ItemStack, par2EntityPlayer, getEnergyUsed()))
|
||||
{
|
||||
return true;
|
||||
|
@ -96,7 +95,7 @@ public class ItemBloodLightSigil extends EnergyItems implements IHolding
|
|||
@Override
|
||||
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
|
||||
{
|
||||
if (EnergyItems.checkAndSetItemOwner(par1ItemStack, par3EntityPlayer) || par3EntityPlayer.isSneaking())
|
||||
if (!EnergyItems.checkAndSetItemOwner(par1ItemStack, par3EntityPlayer) || par3EntityPlayer.isSneaking())
|
||||
{
|
||||
return par1ItemStack;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue