mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 15:23:06 +00:00
* add layout.json to gitignore * Add quickness rune This rune reduces the delay between consecutive crafts. This is done by essentially scheduling a recipe check every time a recipe completes. Using something like a world accelerator will have no effect on the frequency and the runes themselves do not increase the frequency at which the altar naturally checks for updates. This commit also addresses a couple other issues with the altar. - since the altar was using the world time and not the world age, some mechanics were impossible to trigger if you set doDaylightCycle to false. - For example it was impossible to start a craft if the time wasn't set to a multiple of 100.
109 lines
2.5 KiB
Java
109 lines
2.5 KiB
Java
package WayofTime.alchemicalWizardry.common.bloodAltarUpgrade;
|
|
|
|
public class AltarUpgradeComponent {
|
|
|
|
private int speedUpgrades;
|
|
private int efficiencyUpgrades;
|
|
private int sacrificeUpgrades;
|
|
private int selfSacrificeUpgrades;
|
|
private int displacementUpgrades;
|
|
private int altarCapacitiveUpgrades;
|
|
private int orbCapacitiveUpgrades;
|
|
private int betterCapacitiveUpgrades;
|
|
private int accelerationUpgrades;
|
|
private int quicknessUpgrades;
|
|
|
|
public AltarUpgradeComponent() {
|
|
speedUpgrades = 0;
|
|
efficiencyUpgrades = 0;
|
|
sacrificeUpgrades = 0;
|
|
selfSacrificeUpgrades = 0;
|
|
displacementUpgrades = 0;
|
|
altarCapacitiveUpgrades = 0;
|
|
orbCapacitiveUpgrades = 0;
|
|
betterCapacitiveUpgrades = 0;
|
|
accelerationUpgrades = 0;
|
|
quicknessUpgrades = 0;
|
|
}
|
|
|
|
public void addSpeedUpgrade() {
|
|
speedUpgrades++;
|
|
}
|
|
|
|
public void addEfficiencyUpgrade() {
|
|
efficiencyUpgrades++;
|
|
}
|
|
|
|
public void addSacrificeUpgrade() {
|
|
sacrificeUpgrades++;
|
|
}
|
|
|
|
public void addSelfSacrificeUpgrade() {
|
|
selfSacrificeUpgrades++;
|
|
}
|
|
|
|
public void addDisplacementUpgrade() {
|
|
displacementUpgrades++;
|
|
}
|
|
|
|
public void addaltarCapacitiveUpgrade() {
|
|
altarCapacitiveUpgrades++;
|
|
}
|
|
|
|
public void addorbCapacitiveUpgrade() {
|
|
orbCapacitiveUpgrades++;
|
|
}
|
|
|
|
public void addBetterCapacitiveUpgrade() {
|
|
betterCapacitiveUpgrades++;
|
|
}
|
|
|
|
public void addAccelerationUpgrade() {
|
|
accelerationUpgrades++;
|
|
}
|
|
|
|
public void addQuicknessUpgrade() {
|
|
quicknessUpgrades++;
|
|
}
|
|
|
|
public int getSpeedUpgrades() {
|
|
return speedUpgrades;
|
|
}
|
|
|
|
public int getEfficiencyUpgrades() {
|
|
return efficiencyUpgrades;
|
|
}
|
|
|
|
public int getSacrificeUpgrades() {
|
|
return sacrificeUpgrades;
|
|
}
|
|
|
|
public int getSelfSacrificeUpgrades() {
|
|
return selfSacrificeUpgrades;
|
|
}
|
|
|
|
public int getDisplacementUpgrades() {
|
|
return displacementUpgrades;
|
|
}
|
|
|
|
public int getAltarCapacitiveUpgrades() {
|
|
return this.altarCapacitiveUpgrades;
|
|
}
|
|
|
|
public int getOrbCapacitiveUpgrades() {
|
|
return this.orbCapacitiveUpgrades;
|
|
}
|
|
|
|
public int getBetterCapacitiveUpgrades() {
|
|
return this.betterCapacitiveUpgrades;
|
|
}
|
|
|
|
public int getAccelerationUpgrades() {
|
|
return this.accelerationUpgrades;
|
|
}
|
|
|
|
public int getQuicknessUpgrades() {
|
|
return this.quicknessUpgrades;
|
|
}
|
|
}
|