Skip to content

Commit

Permalink
feat: buff effects from food tributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Elenterius committed Nov 23, 2024
1 parent 8d2ec4d commit 538ab42
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ static Tribute from(ItemStack stack) {
}

if (isSuspiciousStewItem) {
SuspiciousStewItemAccessor.biomancy$ListPotionEffects(stack, effectInstance -> builder.addEffect(effectInstance, 0.95f));
SuspiciousStewItemAccessor.biomancy$ListPotionEffects(stack, effectInstance -> builder.addEffect(effectInstance, 1.2f));
}

if (isFoodItem) {
for (Pair<MobEffectInstance, Float> pair : food.getEffects()) {
MobEffectInstance effectInstance = pair.getFirst();
float chance = pair.getSecond();
builder.addEffect(effectInstance, chance * 0.9f);
builder.addEffect(effectInstance, chance * 1.2f);
}
}

Expand Down

0 comments on commit 538ab42

Please sign in to comment.