mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
update comment
This commit is contained in:
@@ -682,8 +682,9 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
|
|||||||
return min;
|
return min;
|
||||||
}
|
}
|
||||||
final ImmutableList.Builder<Integer> choices = ImmutableList.builder();
|
final ImmutableList.Builder<Integer> choices = ImmutableList.builder();
|
||||||
//todo check for X cost or any max value for optional costs like multikicker, etc to determine the correct max value,
|
// todo check for X cost or any max value for optional costs like multikicker, etc to determine the correct max value,
|
||||||
// fixes crash for word of command OutOfMemoryError since it will build from 0 to Integer.MAX_VALUE...
|
// fixes crash for word of command OutOfMemoryError when selecting a card with announce X or Multikicker since
|
||||||
|
// it will build from 0 to Integer.MAX_VALUE...
|
||||||
int size = max == Integer.MAX_VALUE ? 9 : max - min;
|
int size = max == Integer.MAX_VALUE ? 9 : max - min;
|
||||||
for (int i = 0; i <= size; i++) {
|
for (int i = 0; i <= size; i++) {
|
||||||
choices.add(Integer.valueOf(i + min));
|
choices.add(Integer.valueOf(i + min));
|
||||||
|
|||||||
Reference in New Issue
Block a user