mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-25 22:34:31 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6378580b31 | ||
|
|
108966a079 | ||
|
|
8724b77039 | ||
|
|
5c7d87498c | ||
|
|
2f9c2746b4 | ||
|
|
e91f77ca96 | ||
|
|
d18f9730a8 | ||
|
|
9048436bf1 | ||
|
|
3ac6826e6c | ||
|
|
28535c1d72 | ||
|
|
44114660b1 | ||
|
|
f2e17fab72 |
No files matched your search
+1
-1
@@ -1,5 +1,5 @@
|
||||
package_group=emt
|
||||
mc_version=1.7.10
|
||||
forge_version=10.13.4.1614
|
||||
mod_version=1.2.6.3
|
||||
mod_version=1.2.6.4
|
||||
mod_name=ElectroMagicTools
|
||||
@@ -36,7 +36,7 @@ import org.apache.logging.log4j.Logger;
|
||||
public class EMT {
|
||||
public static final String NAME = "Electro-Magic Tools";
|
||||
public static final String MOD_ID = "EMT";
|
||||
public static final String VERSION = "1.2.6.2";
|
||||
public static final String VERSION = "1.2.6.4";
|
||||
public static final String TEXTURE_PATH = "emt";
|
||||
public static final String GUI_FACTORY = "emt.client.gui.config.EMTGuiFactory";
|
||||
public static final String CLIENT_PROXY = "emt.proxy.ClientProxy";
|
||||
|
||||
@@ -85,7 +85,7 @@ public class ItemInfusedQuantumChestplate extends ItemArmorElectric {
|
||||
private static boolean lastJetpackUsed = false;
|
||||
|
||||
public ItemInfusedQuantumChestplate(InternalName internalName, int armorType) {
|
||||
super(internalName, InternalName.quantum, armorType, 2000000, 12000.0D, 4);
|
||||
super(internalName, InternalName.quantum, armorType, 20000000, 12000.0D, 4);
|
||||
MinecraftForge.EVENT_BUS.register(this);
|
||||
this.setCreativeTab(EMT.TAB);
|
||||
}
|
||||
|
||||
@@ -29,8 +29,8 @@ import java.util.List;
|
||||
|
||||
public class ItemElectricGoggles extends ItemArmor implements IElectricItem, IVisDiscountGear, IGoggles, IRevealer, IMetalArmor, ISpecialArmor {
|
||||
|
||||
public double maxCharge = 10000;
|
||||
public double transferLimit = 10;
|
||||
public double maxCharge = 100000;
|
||||
public double transferLimit = 100;
|
||||
public int tier = 2;
|
||||
public int energyPerDamage = 100;
|
||||
public int visDiscount = 5;
|
||||
|
||||
@@ -24,7 +24,7 @@ public class ItemNanoGoggles extends ItemElectricGoggles {
|
||||
this.setMaxStackSize(1);
|
||||
visDiscount = 6;
|
||||
tier = 3;
|
||||
maxCharge = 100000;
|
||||
maxCharge = 1000000;
|
||||
energyPerDamage = 1000;
|
||||
transferLimit = 100;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ public class ItemQuantumGoggles extends ItemNanoGoggles {
|
||||
this.setMaxDamage(27);
|
||||
this.setMaxStackSize(1);
|
||||
maxCharge = 10000000;
|
||||
tier = 3;
|
||||
tier = 4;
|
||||
visDiscount = 8;
|
||||
transferLimit = 10000;
|
||||
energyPerDamage = 1000;
|
||||
|
||||
@@ -44,10 +44,10 @@ public class ItemSolarHelmetRevealing extends ItemQuantumGoggles {
|
||||
this.maxCharge = 1000000;
|
||||
this.genDay = 256;
|
||||
this.genNight = 128;
|
||||
maxCharge = 10000000;
|
||||
maxCharge = 20000000;
|
||||
visDiscount = 7;
|
||||
tier = 3;
|
||||
transferLimit = 10000;
|
||||
tier = 4;
|
||||
transferLimit = 20000;
|
||||
energyPerDamage = 10000;
|
||||
|
||||
potionCost.put(Integer.valueOf(Potion.poison.id), Integer.valueOf(10000));
|
||||
|
||||
@@ -118,8 +118,5 @@ public class ItemFeatherWing extends ItemArmor {
|
||||
if (player.isSneaking() && !player.onGround && player.motionY < 0) {
|
||||
player.motionY *= 0.6;
|
||||
}
|
||||
if (player.fallDistance > 0.0F) {
|
||||
player.fallDistance-= player.fallDistance/40;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -136,11 +136,11 @@ public class ItemNanoWing extends ItemThaumiumReinforcedWing implements IElectri
|
||||
}
|
||||
|
||||
public double getDamageAbsorptionRatio() {
|
||||
return 1.1000000000000001D;
|
||||
return 1.5999999999999991D;
|
||||
}
|
||||
|
||||
private double getBaseAbsorptionRatio() {
|
||||
return 0.14999999999999999D;
|
||||
return 0.17999999999999999D;
|
||||
}
|
||||
|
||||
/* IC2 API METHODS */
|
||||
|
||||
@@ -4,15 +4,19 @@ import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import emt.EMT;
|
||||
import emt.util.EMTConfigHandler;
|
||||
import ic2.api.item.ElectricItem;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.DamageSource;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class ItemQuantumWing extends ItemNanoWing {
|
||||
public static int maxCharge = 10000000;
|
||||
public int tier = 4;
|
||||
|
||||
public ItemQuantumWing(ArmorMaterial material, int par3, int par4) {
|
||||
super(material, par3, par4);
|
||||
@@ -50,4 +54,29 @@ public class ItemQuantumWing extends ItemNanoWing {
|
||||
public double getMaxCharge(ItemStack itemStack) {
|
||||
return maxCharge;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void damageArmor(EntityLivingBase entity, ItemStack stack, DamageSource source, int damage, int slot) {
|
||||
ElectricItem.manager.discharge(stack, damage * getEnergyPerDamage(), 0x7fffffff, true, false, false);
|
||||
}
|
||||
|
||||
public double getDamageAbsorptionRatio() {
|
||||
return 2.099990000000001D;
|
||||
}
|
||||
|
||||
private double getBaseAbsorptionRatio() {
|
||||
return 0.20999999999999999D;
|
||||
}
|
||||
@Override
|
||||
public ArmorProperties getProperties(EntityLivingBase player, ItemStack armor, DamageSource source, double damage, int slot) {
|
||||
if (source.isUnblockable()) {
|
||||
return new net.minecraftforge.common.ISpecialArmor.ArmorProperties(0, 0.0D, 3);
|
||||
} else {
|
||||
double absorptionRatio = getBaseAbsorptionRatio() * getDamageAbsorptionRatio();
|
||||
int energyPerDamage = getEnergyPerDamage();
|
||||
double damageLimit = energyPerDamage <= 0 ? 0 : (25 * ElectricItem.manager.getCharge(armor)) / energyPerDamage;
|
||||
return new net.minecraftforge.common.ISpecialArmor.ArmorProperties(3, absorptionRatio, (int) damageLimit);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -62,8 +62,5 @@ public class ItemThaumiumReinforcedWing extends ItemFeatherWing implements IVisD
|
||||
@Override
|
||||
public void onArmorTick(World world, EntityPlayer player, ItemStack stack) {
|
||||
this.useWings(player, stack, world, 0.15f, 0.7f, 0.5f, 0);
|
||||
if (player.fallDistance > 0.0F) {
|
||||
player.fallDistance -= player.fallDistance /25;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -26,7 +26,7 @@ import java.util.List;
|
||||
public class ItemElectricHoeGrowth extends ItemHoe implements IElectricItem {
|
||||
|
||||
public IIcon icon;
|
||||
public int maxCharge = 20000;
|
||||
public int maxCharge = 200000;
|
||||
public int growthCost = 500;
|
||||
public int tillCost = 100;
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ import java.util.List;
|
||||
|
||||
public class ItemElectricThorHammer extends ItemSword implements IElectricItem {
|
||||
|
||||
public int maxCharge = 1000000;
|
||||
public int maxCharge = 2000000;
|
||||
private final int hitCost = 5000;
|
||||
private final int lightningCost = 75000;
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ import java.util.Random;
|
||||
|
||||
public class ItemDiamondChainsaw extends ItemAxe implements IElectricItem {
|
||||
|
||||
public int maxCharge = 40000;
|
||||
public int maxCharge = 50000;
|
||||
public int cost = 200;
|
||||
public int hitCost = 300;
|
||||
public int tier = 2;
|
||||
|
||||
@@ -37,7 +37,7 @@ public class ItemStreamChainsaw extends ItemThaumiumChainsaw {
|
||||
setCreativeTab(EMT.TAB);
|
||||
this.maxStackSize = 1;
|
||||
this.setMaxDamage(27);
|
||||
maxCharge = 900000;
|
||||
maxCharge = 1000000;
|
||||
cost = 400;
|
||||
hitCost = 500;
|
||||
tier = 3;
|
||||
|
||||
@@ -23,7 +23,7 @@ public class ItemThaumiumChainsaw extends ItemDiamondChainsaw {
|
||||
this.setCreativeTab(EMT.TAB);
|
||||
this.setMaxDamage(27);
|
||||
this.setMaxStackSize(1);
|
||||
maxCharge = 60000;
|
||||
maxCharge = 100000;
|
||||
cost = 250;
|
||||
hitCost = 350;
|
||||
}
|
||||
|
||||
@@ -52,8 +52,8 @@ public class ItemRockbreakerDrill extends ItemThaumiumDrill {
|
||||
else {
|
||||
this.setMaxDamage(2571);
|
||||
}
|
||||
maxCharge = 900000;
|
||||
transferLimit = 900;
|
||||
maxCharge = 1000000;
|
||||
transferLimit = 1000;
|
||||
tier = 3;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import java.util.List;
|
||||
|
||||
public class ItemThaumiumDrill extends ItemPickaxe implements IElectricItem {
|
||||
|
||||
public int maxCharge = 60000;
|
||||
public int maxCharge = 100000;
|
||||
public int cost;
|
||||
public int tier = 2;
|
||||
public double transferLimit = 100;
|
||||
|
||||
@@ -26,7 +26,7 @@ public class ItemOmnitoolDiamond extends ItemOmnitoolIron {
|
||||
else {
|
||||
this.setMaxDamage(350);
|
||||
}
|
||||
maxCharge = 70000;
|
||||
maxCharge = 100000;
|
||||
hitCost = 250;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ import java.util.Locale;
|
||||
|
||||
public class ItemOmnitoolIron extends ItemPickaxe implements IElectricItem {
|
||||
|
||||
public int maxCharge = 20000;
|
||||
public int maxCharge = 50000;
|
||||
public int cost;
|
||||
public int hitCost = 125;
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ public class ItemOmnitoolThaumium extends ItemOmnitoolDiamond {
|
||||
else {
|
||||
this.setMaxDamage(467);
|
||||
}
|
||||
maxCharge = 140000;
|
||||
maxCharge = 200000;
|
||||
hitCost = 650;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user