-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
723 additions
and
704 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,78 @@ | ||
/* This CS File is used for encounters, and minigames, like card games, chess ect... | ||
Anything relating to those that you will find inside the game. | ||
currently combat encounters are disabled because I don't know how to do them | ||
// This is a draft of a future .cs file that will be used for various encounters, mini-games (like card games, chess, etc.), not currently used. | ||
|
||
namespace Neoa | ||
public class Enc | ||
{ | ||
public static void PrisonFirstEncounter() | ||
{ | ||
Program.DisplayLine("After walking a short distance from your cell a prisoner comes up to you.."); | ||
Program.DisplayLine("..\"Anaxians are all the same I'm tired of you all\""); | ||
Program.DisplayLine("The deranged man begins to attempt to attack you using a rusty sword"); | ||
Program.DisplayLine("Right before the man can attack you the guard quickly tosses you his sword"); | ||
Console.ReadKey(); | ||
Combat(false, "deranged prisoner", 1, 2, 0); | ||
Program.DisplayLine("The guard takes back his sword and tells you to continue on"); | ||
} | ||
//namespace Neoa | ||
// public class Enc | ||
// { | ||
// public static void PrisonFirstEncounter() | ||
// { | ||
// Program.DisplayLine("After walking a short distance from your cell a prisoner comes up to you.."); | ||
// Program.DisplayLine("..\"Anaxians are all the same I'm tired of you all\""); | ||
// Program.DisplayLine("The deranged man begins to attempt to attack you using a rusty sword"); | ||
// Program.DisplayLine("Right before the man can attack you the guard quickly tosses you his sword"); | ||
// Console.ReadKey(); | ||
// Combat(false, "deranged prisoner", 1, 2, 0); | ||
// Program.DisplayLine("The guard takes back his sword and tells you to continue on"); | ||
// } | ||
|
||
public static void FirstEncounter() | ||
{ | ||
Console.ReadKey(); | ||
// public static void FirstEncounter() | ||
// { | ||
// Console.ReadKey(); | ||
|
||
Combat(false, "Escaped Prisoner ", 1, 2, 1); | ||
} | ||
// Combat(false, "Escaped Prisoner ", 1, 2, 1); | ||
// } | ||
|
||
public static void Combat(bool random, string enemyName, int enemyPower, int enemyHealth, int enemyMana) | ||
{ | ||
while (enemyHealth > 0) | ||
{ | ||
Console.Clear(); | ||
Program.DisplayLine(enemyName); | ||
Program.DisplayLine($"Health: {enemyHealth}"); | ||
Program.DisplayLine($"Strength: {enemyPower}"); | ||
Program.DisplayLine($"Mana: {enemyMana}"); | ||
Console.WriteLine("╔══════════════════════╗"); | ||
Console.WriteLine("║ (A)ttack (M)agic ║"); | ||
Console.WriteLine("║ (D)efend (F)lee ║"); | ||
Console.WriteLine("╚══════════════════════╝"); | ||
Program.DisplayLine($"{Program.Player.Name}"); | ||
Program.DisplayLine($"Health: {Program.Player.Health}"); | ||
Program.DisplayLine($"Mana: {Program.Player.Mana}"); | ||
// public static void Combat(bool random, string enemyName, int enemyPower, int enemyHealth, int enemyMana) | ||
// { | ||
// while (enemyHealth > 0) | ||
// { | ||
// Console.Clear(); | ||
// Program.DisplayLine(enemyName); | ||
// Program.DisplayLine($"Health: {enemyHealth}"); | ||
// Program.DisplayLine($"Strength: {enemyPower}"); | ||
// Program.DisplayLine($"Mana: {enemyMana}"); | ||
// Console.WriteLine("╔══════════════════════╗"); | ||
// Console.WriteLine("║ (A)ttack (M)agic ║"); | ||
// Console.WriteLine("║ (D)efend (F)lee ║"); | ||
// Console.WriteLine("╚══════════════════════╝"); | ||
// Program.DisplayLine($"{Program.Player.Name}"); | ||
// Program.DisplayLine($"Health: {Program.Player.Health}"); | ||
// Program.DisplayLine($"Mana: {Program.Player.Mana}"); | ||
|
||
string input = Console.ReadLine(); | ||
// string input = Console.ReadLine(); | ||
|
||
while (string.IsNullOrWhiteSpace(input) && input != "a" && input != "m" && input != "d" && input != "f") | ||
{ | ||
Console.WriteLine("Attack, magic, defend, or flee."); | ||
input = Console.ReadLine(); | ||
} | ||
// while (string.IsNullOrWhiteSpace(input) && input != "a" && input != "m" && input != "d" && input != "f") | ||
// { | ||
// Console.WriteLine("Attack, magic, defend, or flee."); | ||
// input = Console.ReadLine(); | ||
// } | ||
|
||
if (input.ToLower() == "a" && Program.Player.Class != "mage" && input == "attack") | ||
{ | ||
Program.DisplayLine(""); | ||
Program.DisplayLine(""); | ||
} | ||
else if (input.ToLower() == "m" || input == "magic") | ||
{ | ||
Program.DisplayLine("Spells"); | ||
} | ||
else if (input.ToLower() == "d" || input == "defend") | ||
{ | ||
Program.DisplayLine(""); | ||
Program.DisplayLine(""); | ||
} | ||
else if (input.ToLower() == "f" || input == "flee") | ||
{ | ||
Program.DisplayLine(""); | ||
Program.DisplayLine(""); | ||
} | ||
// if (input.ToLower() == "a" && Program.Player.Class != "mage" && input == "attack") | ||
// { | ||
// Program.DisplayLine(""); | ||
// Program.DisplayLine(""); | ||
// } | ||
// else if (input.ToLower() == "m" || input == "magic") | ||
// { | ||
// Program.DisplayLine("Spells"); | ||
// } | ||
// else if (input.ToLower() == "d" || input == "defend") | ||
// { | ||
// Program.DisplayLine(""); | ||
// Program.DisplayLine(""); | ||
// } | ||
// else if (input.ToLower() == "f" || input == "flee") | ||
// { | ||
// Program.DisplayLine(""); | ||
// Program.DisplayLine(""); | ||
// } | ||
|
||
if (Program.Player.Health < 0) | ||
{ | ||
Program.DisplayLine("So you've died? thats not great"); | ||
//Program.Death(); | ||
} | ||
// if (Program.Player.Health < 0) | ||
// { | ||
// Program.DisplayLine("So you've died? thats not great"); | ||
// //Program.Death(); | ||
// } | ||
|
||
} | ||
Console.ReadKey(); | ||
} | ||
} | ||
*/ | ||
// } | ||
// Console.ReadKey(); | ||
// } | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,38 @@ | ||
//Future CS file used for now. | ||
/* | ||
namespace Neoa | ||
{ | ||
//YourHome is the dream DLC that triggers dreams sometimes when you sleep or are knocked out these dreams are sometimes eerie and creepy on purpose(as creepy as I can get) | ||
public class YourHome | ||
{ | ||
public bool Dreams = false; | ||
public static string Dreamer; | ||
// This is a draft of a future .cs file, not currently used. | ||
|
||
public static void Intro() | ||
{ | ||
Program.DisplayLine(ConsoleColor.White, "Distorted Voices","..What is this.....?"); | ||
Program.DisplayLine(ConsoleColor.White, "Distorted Voices","Who are you...."); | ||
|
||
Console.WriteLine(); | ||
//namespace Neoa | ||
//{ | ||
// //YourHome is the dream DLC that triggers dreams sometimes when you sleep or are knocked out these dreams are sometimes eerie and creepy on purpose(as creepy as I can get) | ||
// public class YourHome | ||
// { | ||
// public bool Dreams = false; | ||
// public static string Dreamer; | ||
|
||
Program.DisplayLine(ConsoleColor.DarkGreen,"You", "",0); | ||
Dreamer = Console.ReadLine(); | ||
// public static void Intro() | ||
// { | ||
// Program.DisplayLine(ConsoleColor.White, "Distorted Voices", "..What is this.....?"); | ||
// Program.DisplayLine(ConsoleColor.White, "Distorted Voices", "Who are you...."); | ||
|
||
Console.WriteLine(); | ||
// Console.WriteLine(); | ||
|
||
Program.DisplayLine(ConsoleColor.White,"Distorted Voices",$"Oh its...its... you? {Dreamer} we don't know you... yet.."); | ||
// Program.DisplayLine(ConsoleColor.DarkGreen, "You", "", 0); | ||
// Dreamer = Console.ReadLine(); | ||
|
||
// Console.WriteLine(); | ||
|
||
// Program.DisplayLine(ConsoleColor.White, "Distorted Voices", $"Oh its...its... you? {Dreamer} we don't know you... yet.."); | ||
// } | ||
// } | ||
|
||
} | ||
} | ||
// // The kings court is a DLC that is completely seperate from the base game. | ||
// public class TKC | ||
// { | ||
// public bool KCourt = false; | ||
|
||
// The kings court is a DLC that is completely seperate from the base game. | ||
public class TKC | ||
{ | ||
public bool KCourt = false; | ||
public static void TKCIntro() | ||
{ | ||
Program.DisplayLine(ConsoleColor.Yellow,"King", "Hiiii"); | ||
} | ||
} | ||
} | ||
*/ | ||
// public static void TKCIntro() | ||
// { | ||
// Program.DisplayLine(ConsoleColor.Yellow, "King", "Hiiii"); | ||
// } | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.