changed plasma turbine damage and added config
This commit is contained in:
parent
87ef0280f0
commit
537d6e9330
1 changed files with 7 additions and 1 deletions
|
@ -37,6 +37,8 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity {
|
|||
public ItemStack[] mOutputItems = null;
|
||||
public FluidStack[] mOutputFluids = null;
|
||||
public String mNEI;
|
||||
public int damageFactorLow = 5;
|
||||
public float damageFactorHigh = 0.6f;
|
||||
|
||||
public ArrayList<GT_MetaTileEntity_Hatch_Input> mInputHatches = new ArrayList<GT_MetaTileEntity_Hatch_Input>();
|
||||
public ArrayList<GT_MetaTileEntity_Hatch_Output> mOutputHatches = new ArrayList<GT_MetaTileEntity_Hatch_Output>();
|
||||
|
@ -50,12 +52,16 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity {
|
|||
public GT_MetaTileEntity_MultiBlockBase(int aID, String aName, String aNameRegional) {
|
||||
super(aID, aName, aNameRegional, 2);
|
||||
this.disableMaintenance = GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "MultiBlockMachines.disableMaintenance", false);
|
||||
this.damageFactorLow = GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "MultiBlockMachines.damageFactorLow", 5);
|
||||
this.damageFactorHigh = (float) GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "MultiBlockMachines.damageFactorHigh", 0.6f);
|
||||
this.mNEI = "";
|
||||
}
|
||||
|
||||
public GT_MetaTileEntity_MultiBlockBase(String aName) {
|
||||
super(aName, 2);
|
||||
this.disableMaintenance = GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "MultiBlockMachines.disableMaintenance", false);
|
||||
this.damageFactorLow = GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "MultiBlockMachines.damageFactorLow", 5);
|
||||
this.damageFactorHigh = (float) GregTech_API.sMachineFile.get(ConfigCategories.machineconfig, "MultiBlockMachines.damageFactorHigh", 0.6f);
|
||||
}
|
||||
|
||||
public static boolean isValidMetaTileEntity(MetaTileEntity aMetaTileEntity) {
|
||||
|
@ -465,7 +471,7 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity {
|
|||
|
||||
}
|
||||
}
|
||||
((GT_MetaGenerated_Tool) mInventory[1].getItem()).doDamage(mInventory[1], (long) Math.min(mEUt / 5, Math.pow(mEUt, 0.7)));
|
||||
((GT_MetaGenerated_Tool) mInventory[1].getItem()).doDamage(mInventory[1], (long) Math.min(mEUt / this.damageFactorLow, Math.pow(mEUt, this.damageFactorHigh)));
|
||||
if (mInventory[1].stackSize == 0) mInventory[1] = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue