Compare commits

...
12 Commits
Author SHA1 Message Date
Dream Master bbb2858058 Merge branch 'master2' into dev 2025-10-31 13:47:06 +01:00
Dream Master e1fffc8eb6 update 2025-10-31 13:46:57 +01:00
Dream Master 76e308bd70 sa 2025-10-31 13:46:28 +01:00
John 5d6ef59f52 Fix tooltip for Vis Discount on Nano Wings, which propogates to Quantum Wings as well. 2025-10-30 15:41:00 -04:00
Dream Master 2c76ed22b6 Merge branch 'master' into dev 2025-10-30 13:45:57 +01:00
Dream Master f769825006 update 2025-10-30 13:24:32 +01:00
SST-03 facfe682c5 Omni Mode like Thaumic Boots 2025-10-29 19:03:55 +08:00
SST-03 8dba364e25 Spotless 2 2025-10-28 22:34:37 +08:00
SST-03 fd8e0dff3f Spotless 2025-10-28 21:48:27 +08:00
SST-03 731f565f30 Update ItemElectricBootsTraveller.java 2025-10-28 21:17:10 +08:00
SST-03 8ee6a81a08 Update ItemElectricBootsTraveller.java 2025-10-28 19:20:27 +08:00
SST-03 a8b75eb35a Rebalance jumpMovement Speed 2025-10-28 19:19:53 +08:00
6 changed files with 25 additions and 15 deletions

No files matched your search

+1 -1
View File
@@ -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')
} }
+6
View File
@@ -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
View File
@@ -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
View File
@@ -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() {