Skip to content

Commit

Permalink
Game End
Browse files Browse the repository at this point in the history
  • Loading branch information
benjilebon committed Oct 11, 2019
1 parent af9d688 commit cd65828
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions RPG/Boss.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,21 @@ private void endCombat(bool won, int rndSaved = 0, bool loop = false)

if (won)
{
showCombat();
Console.WriteLine("\n");
//showCombat();
//Console.WriteLine("\n");
Console.Clear();
Program.WriteFormattedLine("{0}", Program.colors[2], "======== Vous avez gagné ! ========");
Program.WriteFormattedLine("{0}", Program.colors[2], "##======= Félicitations ! =======##");


Program.WriteFormattedLine("{0}", Program.colors[14], "+ " + dragon.goldReward + " G");
if (!loop) player.golds += dragon.goldReward;
//Program.WriteFormattedLine("{0}", Program.colors[14], "+ " + dragon.goldReward + " G");
//if (!loop) player.golds += dragon.goldReward;


Program.WriteFormattedLine("{0}", Program.colors[11], "+ " + dragon.xpReward + " XP");
if (!loop) player.xp += dragon.xpReward;
//Program.WriteFormattedLine("{0}", Program.colors[11], "+ " + dragon.xpReward + " XP");
//if (!loop) player.xp += dragon.xpReward;

player.checkLevelUp();
//player.checkLevelUp();

Console.WriteLine();
Program.WriteFormattedLine("Appuyez sur {0} pour recommencer", Program.colors[4], "o");
Expand Down

0 comments on commit cd65828

Please sign in to comment.