Skip to content

Commit

Permalink
feat(buff): increase primal energy conversion of sacrifices in the Pr…
Browse files Browse the repository at this point in the history
…imordial Cradle
  • Loading branch information
Elenterius committed Nov 8, 2023
1 parent f244c70 commit b3923db
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public void onSacrifice(ServerLevel level) {

if (level.random.nextFloat() < sacrificeHandler.getAnomalyChance()) {
spawnPrimordialFleshBlob(level, pos, sacrificeHandler);
addPrimalEnergy(level, Math.round(2048 * energyMultiplier));
addPrimalEnergy(level, Math.round(4096 * energyMultiplier));
SoundUtil.broadcastBlockSound(level, pos, SoundEvents.FOX_SCREECH, 2f, 0.5f);
}
else {
Expand All @@ -163,7 +163,7 @@ public void onSacrifice(ServerLevel level) {
spawnFleshBlob(level, pos, sacrificeHandler);
}

addPrimalEnergy(level, Math.round(512 * energyMultiplier));
addPrimalEnergy(level, Math.round(2048 * energyMultiplier));
SoundUtil.broadcastBlockSound(level, pos, ModSoundEvents.CREATOR_SPAWN_MOB);
}

Expand All @@ -179,7 +179,7 @@ public void onSacrifice(ServerLevel level) {
if (!PrimordialEcosystem.spreadMalignantVeinsFromSource(level, pos, PrimordialEcosystem.MAX_CHARGE_SUPPLIER)) {
PrimordialEcosystem.tryToReplaceBlock(level, pos.below(), ModBlocks.PRIMAL_FLESH.get().defaultBlockState());
}
addPrimalEnergy(level, Math.round(1024 * energyMultiplier));
addPrimalEnergy(level, Math.round(3072 * energyMultiplier));
SoundUtil.broadcastBlockSound(level, pos, ModSoundEvents.FLESH_BLOCK_STEP.get(), 1f, 0.15f + level.random.nextFloat() * 0.5f);
}

Expand Down

0 comments on commit b3923db

Please sign in to comment.