fix: properly create random values for characters

This commit is contained in:
punchready 2021-06-04 06:42:16 +02:00
parent b20b428705
commit 23a8bcdeb4

View File

@ -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;
}