Skip to content

Commit

Permalink
Narslimmus nerf for GoG (#4500)
Browse files Browse the repository at this point in the history
Reduces mana output with Garden of Glass to 25% of the usual amount.
(implements #4372)
  • Loading branch information
TheRealWormbo authored Dec 1, 2023
1 parent cbc8267 commit e84f303
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public class NarslimmusBlockEntity extends GeneratingFlowerBlockEntity {

private static final int RANGE = 2;
private static final int MAX_MANA = manaForSize(4);
public static final int MANA_BASE = 1200;
public static final int MANA_BASE_GOG = MANA_BASE / 4;

public NarslimmusBlockEntity(BlockPos pos, BlockState state) {
super(BotaniaFlowerBlocks.NARSLIMMUS, pos, state);
Expand Down Expand Up @@ -70,7 +72,7 @@ public void tickFlower() {

private static int manaForSize(int size) {
size = Math.min(size, 4);
return 1200 * (int) Math.pow(2, size);
return (XplatAbstractions.INSTANCE.gogLoaded() ? MANA_BASE_GOG : MANA_BASE) * (int) Math.pow(2, size);
}

@Override
Expand Down

0 comments on commit e84f303

Please sign in to comment.