mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
small cleanups to make Eclipse happy
This commit is contained in:
6
pom.xml
6
pom.xml
@@ -162,8 +162,7 @@
|
||||
|
||||
<plugin>
|
||||
<artifactId>maven-release-plugin</artifactId>
|
||||
<version>2.2.1</version>
|
||||
<!--$NO-MVN-MAN-VER$ -->
|
||||
<version>2.2.1</version><!--$NO-MVN-MAN-VER$-->
|
||||
<configuration>
|
||||
<allowTimestampedSnapshots>true</allowTimestampedSnapshots>
|
||||
</configuration>
|
||||
@@ -205,8 +204,7 @@
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<version>2.2.1</version>
|
||||
<!--$NO-MVN-MAN-VER$ -->
|
||||
<version>2.2.1</version><!--$NO-MVN-MAN-VER$-->
|
||||
<configuration>
|
||||
<descriptorRefs>
|
||||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||||
|
||||
@@ -1,7 +1,17 @@
|
||||
package forge;
|
||||
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.Random;
|
||||
import java.util.TreeMap;
|
||||
|
||||
import com.esotericsoftware.minlog.Log;
|
||||
|
||||
import forge.card.cardFactory.CardFactoryUtil;
|
||||
import forge.card.mana.ManaCost;
|
||||
import forge.card.spellability.Ability_Mana;
|
||||
@@ -11,10 +21,6 @@ import forge.card.spellability.Spell_Permanent;
|
||||
import forge.card.staticAbility.StaticAbility;
|
||||
import forge.card.trigger.Trigger;
|
||||
|
||||
import java.security.acl.Owner;
|
||||
import java.util.*;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
/**
|
||||
* <p>Card class.</p>
|
||||
*
|
||||
|
||||
@@ -356,7 +356,7 @@ public class ComputerUtil_Attack2 {
|
||||
// examine the potential forces
|
||||
CardList nextTurnAttackers = new CardList();
|
||||
int candidateCounterAttackDamage = 0;
|
||||
int candidateTotalBlockDamage = 0;
|
||||
//int candidateTotalBlockDamage = 0;
|
||||
for (Card pCard : playerCreatures) {
|
||||
|
||||
// if the creature can attack next turn add it to counter attackers list
|
||||
@@ -364,7 +364,7 @@ public class ComputerUtil_Attack2 {
|
||||
nextTurnAttackers.add(pCard);
|
||||
if (pCard.getNetCombatDamage() > 0) {
|
||||
candidateCounterAttackDamage += pCard.getNetCombatDamage();
|
||||
candidateTotalBlockDamage += pCard.getNetCombatDamage();
|
||||
//candidateTotalBlockDamage += pCard.getNetCombatDamage();
|
||||
playerForces += 1; // player forces they might use to attack
|
||||
}
|
||||
}
|
||||
@@ -376,8 +376,9 @@ public class ComputerUtil_Attack2 {
|
||||
|
||||
// find the potential counter attacking damage compared to AI life total
|
||||
double aiLifeToPlayerDamageRatio = 1000000;
|
||||
if (candidateCounterAttackDamage > 0)
|
||||
if (candidateCounterAttackDamage > 0) {
|
||||
aiLifeToPlayerDamageRatio = (double) AllZone.getComputerPlayer().life / candidateCounterAttackDamage;
|
||||
}
|
||||
|
||||
// get the potential damage and strength of the AI forces
|
||||
CardList candidateAttackers = new CardList();
|
||||
|
||||
Reference in New Issue
Block a user