MAX Capacitors (#297)

* fix isAnchored / isOverdrived faction check

* Faction specific MAX definitions

* GenericActionMessage documentation

* MAX Capacitor functionality and changes to damage resolution for NC MAX shield
This commit is contained in:
Mazo 2019-12-10 13:53:11 +00:00 committed by Fate-JH
parent d168c40093
commit 28beea4e30
10 changed files with 351 additions and 56 deletions

View file

@ -223,7 +223,7 @@ class ResolutionCalculationsTests extends Specification {
InfantryDamageAfterResist(100,100)(50, 10) mustEqual (40,10)
}
"calculate health and armor damage, with bonus damage, for infantry target" in {
"calculate health and armor damage, with bleed through damage, for infantry target" in {
//health = 100, armor = 5 -> resist 10 but only have 5, so rollover extra -> damages (40+5, 5)
InfantryDamageAfterResist(100,5)(50, 10) mustEqual (45,5)
}