Apotheosis

Apotheosis

90M Downloads

Idea: Make `FestiveAffix` loot multiplier part of its definition

James103 opened this issue ยท 0 comments

commented

Currently, FestiveAffix (the Loot Pinata affix), when it triggers, multiplies all drops from the killed creature by 21, by copying the drops 20 additional times. This is hardcoded here:

List<ItemEntity> drops = new ArrayList<>(e.getDrops());
for (ItemEntity item : drops) {
if (((IFestiveMarker) (Object) item.getItem()).isMarked()) {
continue;
}
for (int i = 0; i < 20; i++) {
e.getDrops().add(new ItemEntity(player.level(), item.getX(), item.getY(), item.getZ(), item.getItem().copy()));
}
}

Would it be possible to enable the multiplier to be configured in the definition of FestiveAffix in a similar way as the chance to trigger?

For example, I would like to be able to create a version of the festive affix which triggers more often but with a lower loot multiplier (e.g. 10-15% chance to multiply drops by 2 or 3 at Epic, 15-20% chance to multiply drops by 4 or 5 at Mythic).