mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-02-23 15:38:29 +01:00
Renamed the unittest file so it can be checked in without requiering the unittest libs when building
This commit is contained in:
@@ -488,6 +488,7 @@ public final class CombatController implements VisualEffectCompletedCallback {
|
||||
}
|
||||
|
||||
// see this post for explenations about the calculation: https://andorstrail.com/viewtopic.php?f=3&t=6661
|
||||
// if you change code here make sure to run the tests in CombatControllerTest.java
|
||||
public static float getAverageDamagePerHit(final Actor attacker, final Actor target) {
|
||||
final int numPossibleOutcomes = attacker.getDamagePotential().max - attacker.getDamagePotential().current + 1;
|
||||
float avgNonCriticalDamage = 0;
|
||||
|
||||
@@ -6,9 +6,6 @@ import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
* Created by gonk on 02.02.2020.
|
||||
*/
|
||||
public class CombatControllerTest {
|
||||
@Test
|
||||
public void getAverageDamagePerHit() throws Exception {
|
||||
Reference in New Issue
Block a user