mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-26 06:43:01 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bbb2858058 | ||
|
|
e1fffc8eb6 | ||
|
|
76e308bd70 | ||
|
|
5d6ef59f52 | ||
|
|
2c76ed22b6 | ||
|
|
f769825006 | ||
|
|
facfe682c5 | ||
|
|
8dba364e25 | ||
|
|
fd8e0dff3f | ||
|
|
731f565f30 | ||
|
|
8ee6a81a08 | ||
|
|
a8b75eb35a |
No files matched your search
+1
-1
@@ -11,5 +11,5 @@ dependencies {
|
|||||||
api('net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev')
|
api('net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev')
|
||||||
api('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
|
api('thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev')
|
||||||
|
|
||||||
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.52.85:dev')
|
compileOnly('com.github.GTNewHorizons:GT5-Unofficial:5.09.52.87:dev')
|
||||||
}
|
}
|
||||||
@@ -174,6 +174,12 @@ curseForgeRelations =
|
|||||||
# projects. New projects should not use this parameter.
|
# projects. New projects should not use this parameter.
|
||||||
# customArchiveBaseName =
|
# customArchiveBaseName =
|
||||||
|
|
||||||
|
# Optional parameter to customize the default working directory used by the runClient* tasks. Relative to the project directory.
|
||||||
|
# runClientWorkingDirectory = run/client
|
||||||
|
|
||||||
|
# Optional parameter to customize the default working directory used by the runServer* tasks. Relative to the project directory.
|
||||||
|
# runServerWorkingDirectory = run/server
|
||||||
|
|
||||||
# Optional parameter to have the build automatically fail if an illegal version is used.
|
# Optional parameter to have the build automatically fail if an illegal version is used.
|
||||||
# This can be useful if you e.g. only want to allow versions in the form of '1.1.xxx'.
|
# This can be useful if you e.g. only want to allow versions in the form of '1.1.xxx'.
|
||||||
# The check is ONLY performed if the version is a git tag.
|
# The check is ONLY performed if the version is a git tag.
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
+1
-1
@@ -17,7 +17,7 @@ pluginManagement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.47'
|
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.48'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -24,7 +24,6 @@ import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
|||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import emt.EMT;
|
import emt.EMT;
|
||||||
import emt.init.EMTItems;
|
|
||||||
import emt.util.EMTConfigHandler;
|
import emt.util.EMTConfigHandler;
|
||||||
import emt.util.EMTTextHelper;
|
import emt.util.EMTTextHelper;
|
||||||
import ic2.api.item.ElectricItem;
|
import ic2.api.item.ElectricItem;
|
||||||
@@ -36,6 +35,7 @@ import thaumcraft.api.aspects.Aspect;
|
|||||||
import thaumcraft.common.Thaumcraft;
|
import thaumcraft.common.Thaumcraft;
|
||||||
import thaumcraft.common.items.armor.Hover;
|
import thaumcraft.common.items.armor.Hover;
|
||||||
import thaumicboots.api.IBoots;
|
import thaumicboots.api.IBoots;
|
||||||
|
import thaumicboots.mixins.early.minecraft.EntityLivingBaseAccessor;
|
||||||
|
|
||||||
@Interface(iface = "thaumicboots.api.IBoots", modid = "thaumicboots")
|
@Interface(iface = "thaumicboots.api.IBoots", modid = "thaumicboots")
|
||||||
public class ItemElectricBootsTraveller extends ItemArmor
|
public class ItemElectricBootsTraveller extends ItemArmor
|
||||||
@@ -46,7 +46,8 @@ public class ItemElectricBootsTraveller extends ItemArmor
|
|||||||
public int visDiscount = 2;
|
public int visDiscount = 2;
|
||||||
public float speedBonus = 0.055F;
|
public float speedBonus = 0.055F;
|
||||||
// constant from Thaumcraft's EventHandlerEntity#playerJumps for basic Traveller Boots
|
// constant from Thaumcraft's EventHandlerEntity#playerJumps for basic Traveller Boots
|
||||||
public float jumpBonus = 0.2750000059604645F;
|
public static final float BASE_JUMP_BONUS = 0.2750000059604645F;
|
||||||
|
public float jumpBonus = BASE_JUMP_BONUS;
|
||||||
public double transferLimit = 100;
|
public double transferLimit = 100;
|
||||||
|
|
||||||
public ItemElectricBootsTraveller(ArmorMaterial material, int par3, int par4) {
|
public ItemElectricBootsTraveller(ArmorMaterial material, int par3, int par4) {
|
||||||
@@ -165,15 +166,9 @@ public class ItemElectricBootsTraveller extends ItemArmor
|
|||||||
} else if (Hover.getHover(player.getEntityId())) {
|
} else if (Hover.getHover(player.getEntityId())) {
|
||||||
// Base ItemBootsTraveller jumpBonus equals to jumpBonus of Electric Boots,
|
// Base ItemBootsTraveller jumpBonus equals to jumpBonus of Electric Boots,
|
||||||
// so any other boots factor can be calculated via proportion method
|
// so any other boots factor can be calculated via proportion method
|
||||||
player.jumpMovementFactor = 0.03F
|
player.jumpMovementFactor = (0.03F / BASE_JUMP_BONUS * jumpBonus - 0.02F) * speedMod + 0.02F;
|
||||||
/ ((ItemElectricBootsTraveller) EMTItems.electricBootsTraveller).jumpBonus
|
|
||||||
* jumpBonus
|
|
||||||
* speedMod;
|
|
||||||
} else {
|
} else {
|
||||||
player.jumpMovementFactor = 0.05F
|
player.jumpMovementFactor = (0.05F / BASE_JUMP_BONUS * jumpBonus - 0.02F) * speedMod + 0.02F;
|
||||||
/ ((ItemElectricBootsTraveller) EMTItems.electricBootsTraveller).jumpBonus
|
|
||||||
* jumpBonus
|
|
||||||
* speedMod;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -183,8 +178,15 @@ public class ItemElectricBootsTraveller extends ItemArmor
|
|||||||
if (player.moveForward != 0.0) {
|
if (player.moveForward != 0.0) {
|
||||||
player.moveFlying(0.0F, player.moveForward, bonus);
|
player.moveFlying(0.0F, player.moveForward, bonus);
|
||||||
}
|
}
|
||||||
if (player.moveStrafing != 0.0 && getOmniState(itemStack)) {
|
if (getOmniState(itemStack)) {
|
||||||
player.moveFlying(player.moveStrafing, 0.0F, bonus);
|
if (player.moveStrafing != 0.0) player.moveFlying(player.moveStrafing, 0.0F, bonus);
|
||||||
|
boolean jumping = ((EntityLivingBaseAccessor) player).getIsJumping();
|
||||||
|
boolean sneaking = player.isSneaking();
|
||||||
|
if (sneaking && !jumping && !player.onGround) {
|
||||||
|
player.motionY -= bonus;
|
||||||
|
} else if (jumping && !sneaking) {
|
||||||
|
player.motionY += bonus;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ import cpw.mods.fml.relauncher.Side;
|
|||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import emt.EMT;
|
import emt.EMT;
|
||||||
import emt.util.EMTConfigHandler;
|
import emt.util.EMTConfigHandler;
|
||||||
|
import emt.util.EMTTextHelper;
|
||||||
import gregtech.api.hazards.Hazard;
|
import gregtech.api.hazards.Hazard;
|
||||||
import gregtech.api.hazards.IHazardProtector;
|
import gregtech.api.hazards.IHazardProtector;
|
||||||
import ic2.api.item.ElectricItem;
|
import ic2.api.item.ElectricItem;
|
||||||
@@ -140,6 +141,7 @@ public class ItemNanoWing extends ItemThaumiumReinforcedWing
|
|||||||
@Override
|
@Override
|
||||||
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
public void addInformation(ItemStack stack, EntityPlayer par2EntityPlayer, List<String> list, boolean par4) {
|
||||||
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
list.add(StatCollector.translateToLocal("ic2.item.tooltip.PowerTier") + " " + getTier(new ItemStack(this)));
|
||||||
|
list.add(EMTTextHelper.PURPLE + EMTTextHelper.localize("tooltip.EMT.visDiscount") + ": " + visDiscount + "%");
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getDamageAbsorptionRatio() {
|
public double getDamageAbsorptionRatio() {
|
||||||
|
|||||||
Reference in new issue
Block a user