show messages for doppelganger if player is using custom decks in adventure

This commit is contained in:
Anthony Calosa
2022-08-19 21:55:05 +08:00
parent 797ff625db
commit 520876f0de

View File

@@ -73,8 +73,9 @@ public class DuelScene extends ForgeScene {
public void GameEnd() { public void GameEnd() {
boolean winner = humanPlayer == hostedMatch.getGame().getMatch().getWinner(); boolean winner = humanPlayer == hostedMatch.getGame().getMatch().getWinner();
String enemyName = (enemy.nameOverride.isEmpty() ? enemy.getData().name : enemy.nameOverride); String enemyName = (enemy.nameOverride.isEmpty() ? enemy.getData().name : enemy.nameOverride);
boolean showMessages = enemy.getData().copyPlayerDeck && Current.player().isUsingCustomDeck();
Current.player().clearBlessing(); Current.player().clearBlessing();
if (chaosBattle && !winner) { if ((chaosBattle||showMessages) && !winner) {
callbackExit = true; callbackExit = true;
List<String> insult = Lists.newArrayList("I'm sorry...", "... ....", "Learn from your defeat.", List<String> insult = Lists.newArrayList("I'm sorry...", "... ....", "Learn from your defeat.",
"I haven't begun to use my full power.", "No matter how much you try, you still won't beat me.", "I haven't begun to use my full power.", "No matter how much you try, you still won't beat me.",
@@ -285,7 +286,8 @@ public class DuelScene extends ForgeScene {
hostedMatch.setEndGameHook(() -> DuelScene.this.GameEnd()); hostedMatch.setEndGameHook(() -> DuelScene.this.GameEnd());
hostedMatch.startMatch(rules, appliedVariants, players, guiMap); hostedMatch.startMatch(rules, appliedVariants, players, guiMap);
MatchController.instance.setGameView(hostedMatch.getGameView()); MatchController.instance.setGameView(hostedMatch.getGameView());
if (chaosBattle) { boolean showMessages = enemy.getData().copyPlayerDeck && Current.player().isUsingCustomDeck();
if (chaosBattle||showMessages) {
List<String> list = Lists.newArrayList("It all depends on your skill!", "It's showtime!", "Let's party!", List<String> list = Lists.newArrayList("It all depends on your skill!", "It's showtime!", "Let's party!",
"You've proved yourself!", "Are you ready? Go!", "Prepare to strike, now!", "Let's go!", "What's next?", "You've proved yourself!", "Are you ready? Go!", "Prepare to strike, now!", "Let's go!", "What's next?",
"Yeah, I've been waitin' for this!", "The stage of battle is set!", "And the battle begins!", "Let's get started!", "Yeah, I've been waitin' for this!", "The stage of battle is set!", "And the battle begins!", "Let's get started!",
@@ -324,7 +326,7 @@ public class DuelScene extends ForgeScene {
this.player = playerSprite; this.player = playerSprite;
this.enemy = enemySprite; this.enemy = enemySprite;
this.playerDeck = (Deck) AdventurePlayer.current().getSelectedDeck().copyTo("PlayerDeckCopy"); this.playerDeck = (Deck) AdventurePlayer.current().getSelectedDeck().copyTo("PlayerDeckCopy");
this.chaosBattle = this.enemy.getData().copyPlayerDeck && Current.player().isFantasyMode(); this.chaosBattle = this.enemy.getData().copyPlayerDeck && (Current.player().isFantasyMode());
this.AIExtras.clear(); this.AIExtras.clear();
this.playerExtras.clear(); this.playerExtras.clear();
} }