12-27-2024, 03:15 PM
The code will create a random number between 0 and 0x7FFF (32767) and this number is compared to specific ranges. The ranges are different in the size, hence the probailities. If a range is hit, then the corresponding item is used.
The item determination starts at the line
4E800421 2C031480
and ends at
3940000D 38800000
If you want e. g. to only rain bombs, simply replace all 3940000X in that part with 39400009. But if you do so, you should remove the other item limits and increase the limit for bombs so that they not dissapear when they are falling.
If you want customized probabilities, you have to modify the source. You could use PyIIASM-3 for this.
The item determination starts at the line
4E800421 2C031480
and ends at
3940000D 38800000
If you want e. g. to only rain bombs, simply replace all 3940000X in that part with 39400009. But if you do so, you should remove the other item limits and increase the limit for bombs so that they not dissapear when they are falling.
If you want customized probabilities, you have to modify the source. You could use PyIIASM-3 for this.