Skip to content

Commit

Permalink
make static final fields of RitualEffectWellOfSuffering public (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexdoru authored Sep 13, 2024
1 parent baa2336 commit 7b48d96
Showing 1 changed file with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ public class RitualEffectWellOfSuffering extends RitualEffect {

public static final int timeDelay = 25;
public static final int amount = AlchemicalWizardry.lpPerSacrificeWellOfSuffering;

private static final int tennebraeDrain = 5;
private static final int potentiaDrain = 10;
private static final int offensaDrain = 3;
public static final int tennebraeDrain = 5;
public static final int potentiaDrain = 10;
public static final int offensaDrain = 3;

@Override
public void performEffect(IMasterRitualStone ritualStone) {
Expand All @@ -36,7 +35,7 @@ public void performEffect(IMasterRitualStone ritualStone) {
int y = ritualStone.getYCoord();
int z = ritualStone.getZCoord();

if (world.getWorldTime() % this.timeDelay != 0) {
if (world.getWorldTime() % timeDelay != 0) {
return;
}

Expand All @@ -62,13 +61,8 @@ public void performEffect(IMasterRitualStone ritualStone) {

int d0 = 10;
int vertRange = hasPotentia ? 20 : 10;
AxisAlignedBB axisalignedbb = AxisAlignedBB.getBoundingBox(
(double) x,
(double) y,
(double) z,
(double) (x + 1),
(double) (y + 1),
(double) (z + 1)).expand(d0, vertRange, d0);
AxisAlignedBB axisalignedbb = AxisAlignedBB.getBoundingBox(x, y, z, (x + 1), (y + 1), (z + 1))
.expand(d0, vertRange, d0);
List<EntityLivingBase> list = world.getEntitiesWithinAABB(EntityLivingBase.class, axisalignedbb);

int entityCount = 0;
Expand All @@ -93,7 +87,7 @@ public void performEffect(IMasterRitualStone ritualStone) {
&& this.canDrainReagent(ritualStone, ReagentRegistry.tenebraeReagent, tennebraeDrain, true);

entityCount++;
tileAltar.sacrificialDaggerCall(this.amount * (hasTennebrae ? 2 : 1) * (hasOffensa ? 2 : 1), true);
tileAltar.sacrificialDaggerCall(amount * (hasTennebrae ? 2 : 1) * (hasOffensa ? 2 : 1), true);
}
}

Expand All @@ -112,7 +106,7 @@ public int getCostPerRefresh() {

@Override
public List<RitualComponent> getRitualComponentList() {
ArrayList<RitualComponent> wellOfSufferingRitual = new ArrayList();
ArrayList<RitualComponent> wellOfSufferingRitual = new ArrayList<>();
wellOfSufferingRitual.add(new RitualComponent(1, 0, 1, RitualComponent.FIRE));
wellOfSufferingRitual.add(new RitualComponent(-1, 0, 1, RitualComponent.FIRE));
wellOfSufferingRitual.add(new RitualComponent(1, 0, -1, RitualComponent.FIRE));
Expand Down

0 comments on commit 7b48d96

Please sign in to comment.