[2.0.28] ItemProductPrototype::amount is not a uint16
Posted: Sat Dec 28, 2024 12:47 am
The type of `amount` in ItemProductPrototype is listed as `uint16`, but many of the recycling recipes in `data.raw` have floating-point values for their craft amount. For example, in `accumulator-recycling`, there is the block
I assume what happens is that the floor is taken of `amount` when loaded - I'm not sure if this behaviour is documented (at least, I couldn't find it on the docs page). Please correct me if my understanding is wrong!
Code: Select all
amount = 1.25,
extra_count_fraction = 0.25,
name = "battery",
type = "item"