hopefully fixed the malicious gigglefish from the silly dimension

This commit is contained in:
Boblet 2023-09-08 15:20:47 +02:00
parent 3392ac21d9
commit 82dafa437b
15 changed files with 83 additions and 26 deletions

View File

@ -0,0 +1,13 @@
## Added
## Changed
* Updated russian localization
* The UAC pistol's UV now looks prettier
* The UAC pistol now fires a burst on right click
* CCGTs can no longer have smoke removed from them, on the count of there not being enough connections anyway. The pollution rate is now equivalent to three small furnaces
## Fixed
* Fixed the bomber not spawning if the chunkloading radios is too small
* Fixed a couple spelling mistakes like BFB fuel being called ZFB and the broken ZIRNOX
* Potentially fixed a compat issue where galacticraft moon soil isn't shreddable into NTM moon turf
* Hopefully fixed the disappearing fluid buf once and for all

View File

@ -37,8 +37,11 @@ public interface IFluidUser extends IFluidConnector {
if(con.canConnect(type, dir.getOpposite())) {
long toSend = this.getTotalFluidForSend(type, pressure);
long transfer = toSend - con.transferFluid(type, pressure, toSend);
this.removeFluidForTransfer(type, pressure, transfer);
if(toSend > 0) {
long transfer = toSend - con.transferFluid(type, pressure, toSend);
this.removeFluidForTransfer(type, pressure, transfer);
}
red = true;
}
}

View File

@ -127,14 +127,17 @@ public class PipeNet implements IPipeNet {
long given = (long) Math.floor(fraction * fill);
totalGiven += (given - con.transferFluid(type, pressure, given));
if(trackingInstances != null) {
for(int j = 0; j < trackingInstances.size(); j++) {
PipeNet net = trackingInstances.get(j);
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss:SSS");
sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
log(net, sdf.format(new Date(System.currentTimeMillis())) + " Sending " + given + "mB to " + conToString(con));
if(given > 0) {
totalGiven += (given - con.transferFluid(type, pressure, given));
if(trackingInstances != null) {
for(int j = 0; j < trackingInstances.size(); j++) {
PipeNet net = trackingInstances.get(j);
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss:SSS");
sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
log(net, sdf.format(new Date(System.currentTimeMillis())) + " Sending " + given + "mB to " + conToString(con));
}
}
}
}

View File

@ -89,13 +89,13 @@ public class ArmorBJJetpack extends ArmorBJ {
}
}
}
}
@SideOnly(Side.CLIENT)
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean ext) {
super.addInformation(stack, player, list, ext);
}
list.add(EnumChatFormatting.RED + " + " + I18nUtil.resolveKey("armor.electricJetpack"));
list.add(EnumChatFormatting.GRAY + " + " + I18nUtil.resolveKey("armor.glider"));
}
@SideOnly(Side.CLIENT)
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean ext) {
super.addInformation(stack, player, list, ext);
list.add(EnumChatFormatting.RED + " + " + I18nUtil.resolveKey("armor.electricJetpack"));
list.add(EnumChatFormatting.GRAY + " + " + I18nUtil.resolveKey("armor.glider"));
}
}

View File

@ -289,6 +289,10 @@ public class ArmorFSB extends ItemArmor implements IArmorDisableModel {
list.add(EnumChatFormatting.BLUE + " " + I18nUtil.resolveKey("armor.gravity", gravity));
}
if(stepSize != 0) {
list.add(EnumChatFormatting.BLUE + " " + I18nUtil.resolveKey("armor.stepSize", stepSize));
}
if(dashCount > 0) {
list.add(EnumChatFormatting.AQUA + " " + I18nUtil.resolveKey("armor.dash", dashCount));
}

View File

@ -1,12 +1,17 @@
package com.hbm.items.armor;
import java.util.List;
import com.hbm.render.model.ModelArmorTrenchmaster;
import com.hbm.util.I18nUtil;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.model.ModelBiped;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
public class ArmorTrenchmaster extends ArmorFSB {
@ -30,4 +35,12 @@ public class ArmorTrenchmaster extends ArmorFSB {
return models[armorSlot];
}
@SideOnly(Side.CLIENT)
public void addInformation(ItemStack stack, EntityPlayer player, List list, boolean ext) {
super.addInformation(stack, player, list, ext);
list.add(EnumChatFormatting.RED + " + " + I18nUtil.resolveKey("armor.fasterReload"));
list.add(EnumChatFormatting.GRAY + " + " + I18nUtil.resolveKey("armor.moreAmmo"));
}
}

View File

@ -18,7 +18,7 @@ import com.hbm.lib.Library;
import com.hbm.main.MainRegistry;
import com.hbm.sound.AudioWrapper;
import com.hbm.tileentity.IGUIProvider;
import com.hbm.tileentity.TileEntityMachinePolluting;
import com.hbm.tileentity.TileEntityMachineBase;
import api.hbm.energy.IEnergyGenerator;
import api.hbm.fluid.IFluidStandardTransceiver;
@ -33,7 +33,7 @@ import net.minecraft.util.Vec3;
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;
public class TileEntityMachineTurbineGas extends TileEntityMachinePolluting implements IFluidStandardTransceiver, IEnergyGenerator, IControlReceiver, IGUIProvider {
public class TileEntityMachineTurbineGas extends TileEntityMachineBase implements IFluidStandardTransceiver, IEnergyGenerator, IControlReceiver, IGUIProvider {
public long power;
public static final long maxPower = 1000000L;
@ -69,7 +69,7 @@ public class TileEntityMachineTurbineGas extends TileEntityMachinePolluting impl
//TODO particles from heat exchanger maybe? maybe in a future
public TileEntityMachineTurbineGas() {
super(2, 200);
super(2);
this.tanks = new FluidTank[4];
tanks[0] = new FluidTank(Fluids.GAS, 100000);
tanks[1] = new FluidTank(Fluids.LUBRICANT, 16000);
@ -137,9 +137,6 @@ public class TileEntityMachineTurbineGas extends TileEntityMachinePolluting impl
for(int i = 0; i < 2; i++) { //fuel and lube
this.trySubscribe(tanks[i].getTankType(), worldObj, xCoord - dir.offsetX * 2 + rot.offsetX, yCoord, zCoord - dir.offsetZ * 2 + rot.offsetZ, dir.getOpposite());
this.trySubscribe(tanks[i].getTankType(), worldObj, xCoord + dir.offsetX * 2 + rot.offsetX, yCoord, zCoord + dir.offsetZ * 2 + rot.offsetZ, dir);
this.sendSmoke(xCoord - dir.offsetX * 2 + rot.offsetX, yCoord, zCoord - dir.offsetZ * 2 + rot.offsetZ, dir.getOpposite());
this.sendSmoke(xCoord + dir.offsetX * 2 + rot.offsetX, yCoord, zCoord + dir.offsetZ * 2 + rot.offsetZ, dir);
}
//water
this.trySubscribe(tanks[2].getTankType(), worldObj, xCoord - dir.offsetX * 2 + rot.offsetX * -4, yCoord, zCoord - dir.offsetZ * 2 + rot.offsetZ * -4, dir.getOpposite());
@ -303,7 +300,7 @@ public class TileEntityMachineTurbineGas extends TileEntityMachinePolluting impl
}
double consumption = fuelMaxCons.containsKey(tanks[0].getTankType()) ? fuelMaxCons.get(tanks[0].getTankType()) : 5D;
if(worldObj.getTotalWorldTime() % 20 == 0 && tanks[0].getTankType() != Fluids.OXYHYDROGEN) this.pollute(PollutionType.SOOT, PollutionHandler.SOOT_PER_SECOND * (float) consumption * 0.25F);
if(worldObj.getTotalWorldTime() % 20 == 0 && tanks[0].getTankType() != Fluids.OXYHYDROGEN) PollutionHandler.incrementPollution(worldObj, xCoord, yCoord, zCoord, PollutionType.SOOT, 3F);
makePower(consumption, throttle);
}
@ -536,7 +533,7 @@ public class TileEntityMachineTurbineGas extends TileEntityMachinePolluting impl
@Override
public FluidTank[] getSendingTanks() {
return new FluidTank[] { tanks[3], smoke, smoke_leaded, smoke_poison };
return new FluidTank[] { tanks[3] };
}
@Override

View File

@ -72,6 +72,24 @@ public class TileEntityBarrel extends TileEntityMachineBase implements IFluidAcc
return (byte) (MathHelper.clamp_int((int) frac + 1, 0, 15));
}
@Override
public long getDemand(FluidType type, int pressure) {
if(this.mode == 2 || this.mode == 3 || this.sendingBrake)
return 0;
if(tank.getPressure() != pressure) return 0;
return type == tank.getTankType() ? tank.getMaxFill() - tank.getFill() : 0;
}
@Override
public long transferFluid(FluidType type, int pressure, long fluid) {
long toTransfer = Math.min(getDemand(type, pressure), fluid);
tank.setFill(tank.getFill() + (int) toTransfer);
return fluid - toTransfer;
}
@Override
public void updateEntity() {

View File

@ -88,6 +88,7 @@ armor.cap=Schadensobergrenze: %s
armor.damageModifier=Modifikator: %s (%s)
armor.electricJetpack=Ionentriebwerke
armor.explosionImmune=Kann nur Schaden durch Explosionen nehmen
armor.fasterReload=Schneklleres Nachladen
armor.fastFall=Schneller Fall
armor.fireproof=Feuerfest
armor.fullSetBonus=Set-Bonus:
@ -98,10 +99,12 @@ armor.gravity=Schwerkraftsmodifikator: %s
armor.hardLanding=Harte Landung
armor.ignoreLimit=Resistenz ist nicht limitiert
armor.modifier=Genereller Schadensmodifikator: %s
armor.moreAmmo=Mehr Munition
armor.nullDamage=Nichtet Schaden von %s
armor.projectileProtection=Projektilmodifikator: %s
armor.rocketBoots=Rocket boots
armor.sprintBoost=Verstärkter Sprint
armor.stepSize=Schritthöhe: %s
armor.thermal=Wärmebildkamera
armor.threshold=Schadensschwelle: %s
armor.vats=Feinde-HUD

View File

@ -135,6 +135,7 @@ armor.damageModifier=Damage modifier of %s against %s
armor.dash=Grants %s dashes
armor.electricJetpack=Ion Jetpack
armor.explosionImmune=Cannot take any damage except from explosions
armor.fasterReload=Faster Reload
armor.fastFall=Fast Fall
armor.fireproof=Fireproof
armor.fullSetBonus=Full Set Bonus:
@ -145,10 +146,12 @@ armor.gravity=Gravity modifier of %s
armor.hardLanding=Hard Landing
armor.ignoreLimit=Resistance is not affected by resistance limit
armor.modifier=General damage modifier of %s
armor.moreAmmo=More Ammo
armor.nullDamage=Nullifies all damage from %s
armor.projectileProtection=Damage modifier of %s against projectiles
armor.rocketBoots=Rocket Boots
armor.sprintBoost=Boosted Sprint
armor.stepSize=Stepsize: %s
armor.thermal=Thermal Sight
armor.threshold=Damage threshold of %s
armor.vats=Enemy HUD

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 528 B

After

Width:  |  Height:  |  Size: 1004 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 827 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 366 B