fix: properly create random values for characters
This commit is contained in:
parent
b20b428705
commit
23a8bcdeb4
@ -68,12 +68,12 @@ public class BaseGameLogicTest {
|
||||
|
||||
props.name = generateName(10);
|
||||
|
||||
props.HP = Math.abs(randomIntegers.next() % 15 + 5);
|
||||
props.MP = Math.abs(randomIntegers.next() % 5 + 2);
|
||||
props.AP = Math.abs(randomIntegers.next() % 5 + 2);
|
||||
props.meleeDamage = Math.abs(randomIntegers.next() % 5 + 2);
|
||||
props.rangedDamage = Math.abs(randomIntegers.next() % 5 + 2);
|
||||
props.attackRange = Math.abs(randomIntegers.next() % 5 + 2);
|
||||
props.HP = Math.abs(randomIntegers.next() % 15) + 5;
|
||||
props.MP = Math.abs(randomIntegers.next() % 5) + 2;
|
||||
props.AP = Math.abs(randomIntegers.next() % 5) + 2;
|
||||
props.meleeDamage = Math.abs(randomIntegers.next() % 5) + 2;
|
||||
props.rangedDamage = Math.abs(randomIntegers.next() % 5) + 2;
|
||||
props.attackRange = Math.abs(randomIntegers.next() % 5) + 2;
|
||||
|
||||
return props;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user