Search found 2 matches
- Fri May 31, 2024 4:21 am
- Forum: Resolved Requests
- Topic: Update the type of EffectValue to be be uint16
- Replies: 4
- Views: 470
Re: Update the type of EffectValue to be be uint16
yeah I hadn't exactly expressed it right but yeah I guess my point was that the modding docs dont actually mention that it sneakily behaves as a int16 where the value is a percentage of that number. The way it is set up currently led me to believe I could have a effective effect value of some large ...
- Fri May 24, 2024 3:19 am
- Forum: Resolved Requests
- Topic: Update the type of EffectValue to be be uint16
- Replies: 4
- Views: 470
Update the type of EffectValue to be be uint16
Currently the effect value page https://lua-api.factorio.com/latest/types/EffectValue.html#bonus claims that bonus is stored as a double. This is not the case, it is actually stored as a uint16 and is reflected by trying to create a module with a bonus higher than (2^16 - 1)/2 because the bonus roll...