Skip to content

Commit

Permalink
Merge pull request Card-Forge#250 from magpie514/master
Browse files Browse the repository at this point in the history
Adventure mode - Revert RNG
  • Loading branch information
kevlahnota authored May 5, 2022
2 parents fe02156 + e931da7 commit 84e4cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forge-gui-mobile/src/forge/adventure/data/RewardData.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public boolean apply(PaperCard input) {
if(probability == 0 || WorldSave.getCurrentSave().getWorld().getRandom().nextFloat() <= probability) {
if(type==null || type.isEmpty())
type="randomCard";
int addedCount = WorldSave.getCurrentSave().getWorld().getRandom().nextInt(addMaxCount);
int addedCount = (int)((float)(addMaxCount)* WorldSave.getCurrentSave().getWorld().getRandom().nextFloat());
if( colors != null && colors.length > 0 ) { //Filter special "colorID" case.
String C = Current.player().getColorIdentityLong();
for(int i = 0; i < colors.length; i++){
Expand Down

0 comments on commit 84e4cf5

Please sign in to comment.