Skip to content

GBAFE: Random movement does not use maximum shown in UI#261

Merged
lushen124 merged 3 commits intolushen124:masterfrom
sbeach:bug/lushen124#259
Aug 25, 2020
Merged

GBAFE: Random movement does not use maximum shown in UI#261
lushen124 merged 3 commits intolushen124:masterfrom
sbeach:bug/lushen124#259

Conversation

@sbeach
Copy link
Contributor

@sbeach sbeach commented Jul 6, 2020

Issue #259
Random.nextInt(bound) excludes bound as a potential option and instead returns the floor of the calculated value. Thus if a user inputs 8 as Max MOV, 7 will be the true maximum after randomization.

sbeach added 3 commits July 5, 2020 19:57
Side benefit of resolving a potential crash if user inputs equal values for min and max movement
@sbeach sbeach changed the title #259: GBAFE: Random movement does not use maximum shown in UI GBAFE: Random movement does not use maximum shown in UI Jul 6, 2020
@sbeach
Copy link
Contributor Author

sbeach commented Jul 6, 2020

If you want the test package stuff removed it will make me sad, but I will understand.

Side note, the JARs are in a new lib folder because that's the default location for IntelliJ.

@lushen124
Copy link
Owner

I had plans at one point to write tests, but I never got around to it. Tests are always nice to have. 🙂

@lushen124 lushen124 added the GBAFE Applies to all Fire Emblem titles on the GBA. label Jul 6, 2020
@lushen124 lushen124 added this to the 0.9.2 milestone Jul 6, 2020
@lushen124 lushen124 linked an issue Aug 15, 2020 that may be closed by this pull request
@lushen124 lushen124 merged commit 5044992 into lushen124:master Aug 25, 2020
@sbeach sbeach deleted the bug/lushen124#259 branch September 4, 2020 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GBAFE Applies to all Fire Emblem titles on the GBA.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GBAFE: Random movement does not use maximum shown in UI

2 participants