mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-02-24 15:00:48 +00:00
fixes
This commit is contained in:
parent
0cfcbf1a97
commit
a4b067616a
@ -15,14 +15,8 @@ float target;
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float modify(ItemStack stack, EntityLivingBase holder, float level) {
|
public float modify(ItemStack stack, EntityLivingBase holder, float level) {
|
||||||
|
double depletion = Math.pow(stack.getItem().getDurabilityForDisplay(stack), 0.4D);
|
||||||
if(stack.getItem() instanceof ItemFuelRod) {
|
level = (float) (level + (this.target - level) * depletion);
|
||||||
ItemFuelRod fuel = (ItemFuelRod) stack.getItem();
|
|
||||||
double depletion = Math.pow(fuel.getDurabilityForDisplay(stack), 0.4D);
|
|
||||||
|
|
||||||
level = (float) (level + (this.target - level) * depletion);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
return level;
|
return level;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -65,6 +65,11 @@ public class ItemZirnoxRod extends ItemEnumMulti {
|
|||||||
EnumZirnoxType num = EnumUtil.grabEnumSafely(theEnum, stack.getItemDamage());
|
EnumZirnoxType num = EnumUtil.grabEnumSafely(theEnum, stack.getItemDamage());
|
||||||
String[] loc = I18nUtil.resolveKeyArray("desc.item.zirnox" + (num.breeding ? "BreedingRod" : "Rod"), BobMathUtil.getShortNumber(num.maxLife));
|
String[] loc = I18nUtil.resolveKeyArray("desc.item.zirnox" + (num.breeding ? "BreedingRod" : "Rod"), BobMathUtil.getShortNumber(num.maxLife));
|
||||||
|
|
||||||
|
if(num.breeding)
|
||||||
|
loc = I18nUtil.resolveKeyArray("desc.item.zirnoxBreedingRod", BobMathUtil.getShortNumber(num.maxLife));
|
||||||
|
else
|
||||||
|
loc = I18nUtil.resolveKeyArray("desc.item.zirnoxRod", num.heat, BobMathUtil.getShortNumber(num.maxLife));
|
||||||
|
|
||||||
for(String s : loc) {
|
for(String s : loc) {
|
||||||
list.add(s);
|
list.add(s);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -298,7 +298,7 @@ public class TileEntityReactorZirnox extends TileEntityMachineBase implements IF
|
|||||||
|
|
||||||
for(int i = 0; i < decay; i++) {
|
for(int i = 0; i < decay; i++) {
|
||||||
this.heat += num.heat;
|
this.heat += num.heat;
|
||||||
ItemZirnoxRod.incrementLifeTime(slots[id]);;
|
ItemZirnoxRod.incrementLifeTime(slots[id]);
|
||||||
|
|
||||||
if(ItemZirnoxRod.getLifeTime(slots[id]) > num.maxLife) {
|
if(ItemZirnoxRod.getLifeTime(slots[id]) > num.maxLife) {
|
||||||
slots[id] = fuelMap.get(new ComparableStack(getStackInSlot(id))).copy();
|
slots[id] = fuelMap.get(new ComparableStack(getStackInSlot(id))).copy();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user