Hbm's Nuclear Tech Mod

Hbm's Nuclear Tech Mod

1M Downloads

Flashlead RBMK pellets have negative radiation

TehTemmie opened this issue ยท 1 comments

commented

Flashlead RBMK pellets (i.e. the ones you get from recycling RBMK fuel rods) with high xenon level have negative radiation. Other pellets likely have higher (or lower) radiation than intended due to how the RBMK radiation modifier is implemented. Specifically, this line seems to be the issue:

level = level + (target - level) * (ItemRBMKPellet.rectify(stack.getItemDamage()) / 4F);

This works fine when the pellet's metadata is between 0 and 4, but high xenon pellets have metadata ranging from 5 to 9, which results in radiation levels outside the (presumably) intended range of radiation values.

commented

Fixed in X4174.