mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Use Round instead of Ceil (for hopefully a bit more granularity).
This commit is contained in:
@@ -1087,9 +1087,9 @@ public class AiController {
|
|||||||
int evalA = ComputerUtilCard.evaluateCreature(a);
|
int evalA = ComputerUtilCard.evaluateCreature(a);
|
||||||
int evalB = ComputerUtilCard.evaluateCreature(b);
|
int evalB = ComputerUtilCard.evaluateCreature(b);
|
||||||
if (evalA > evalB) {
|
if (evalA > evalB) {
|
||||||
a1 += Math.max(1, Math.ceil(evalA / 100.0f));
|
a1 += Math.max(1, Math.round(evalA / 100.0f));
|
||||||
} else if (evalB > evalA) {
|
} else if (evalB > evalA) {
|
||||||
b1 += Math.max(1, Math.ceil(evalB / 100.0f));
|
b1 += Math.max(1, Math.round(evalB / 100.0f));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user