mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Revert "Merge branch 'paco-aicannotplaybyarea' into 'master'"
This reverts merge request !6085
This commit is contained in:
@@ -2077,23 +2077,18 @@ public class AiController {
|
||||
return result;
|
||||
}
|
||||
|
||||
public Map<DeckSection, List<? extends PaperCard>> complainCardsCantPlayWell(Deck myDeck) {
|
||||
Map<DeckSection, List<? extends PaperCard>> complaints = new HashMap<>();
|
||||
public Collection<? extends PaperCard> complainCardsCantPlayWell(Deck myDeck) {
|
||||
List<PaperCard> result = Lists.newArrayList();
|
||||
// When using simulation, AI should be able to figure out most cards.
|
||||
if (!useSimulation) {
|
||||
for (Entry<DeckSection, CardPool> ds : myDeck) {
|
||||
List<PaperCard> result = Lists.newArrayList();
|
||||
for (Entry<PaperCard, Integer> cp : ds.getValue()) {
|
||||
if (cp.getKey().getRules().getAiHints().getRemAIDecks()) {
|
||||
if (cp.getKey().getRules().getAiHints().getRemAIDecks())
|
||||
result.add(cp.getKey());
|
||||
}
|
||||
}
|
||||
if (!result.isEmpty()) {
|
||||
complaints.put(ds.getKey(), result);
|
||||
}
|
||||
}
|
||||
}
|
||||
return complaints;
|
||||
return result;
|
||||
}
|
||||
|
||||
// this is where the computer cheats
|
||||
|
||||
@@ -28,7 +28,6 @@ import forge.card.MagicColor;
|
||||
import forge.card.mana.ManaCost;
|
||||
import forge.card.mana.ManaCostShard;
|
||||
import forge.deck.Deck;
|
||||
import forge.deck.DeckSection;
|
||||
import forge.game.Game;
|
||||
import forge.game.GameEntity;
|
||||
import forge.game.GameObject;
|
||||
@@ -1126,12 +1125,7 @@ public class PlayerControllerAi extends PlayerController {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void revealAISkipCards(String message, Map<Player, Map<DeckSection, List<? extends PaperCard>>> deckCards) {
|
||||
// Ai won't understand that anyway
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<DeckSection, List<? extends PaperCard>> complainCardsCantPlayWell(Deck myDeck) {
|
||||
public Collection<? extends PaperCard> complainCardsCantPlayWell(Deck myDeck) {
|
||||
return brains.complainCardsCantPlayWell(myDeck);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user