using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace PotionsA
{
class Program
{
private static string potiontypeout;
private static string subtypeout;
static void Main()
{
Console.WriteLine("How many Table A Potions do you want?");
int intTemp = Convert.ToInt32(Console.ReadLine());
string outputfile = "potionsa";
Console.WriteLine("Enter file name, which will be written onto your 'C' drive, users/public folder.");
Console.WriteLine("Press enter to default to file name 'potionsa'.");
outputfile = (Console.ReadLine());
if (outputfile == "")
outputfile = "potionsa";
Random rnd = new Random();
string file_name = ("C:\\Users\\public\\" + outputfile + ".txt");
System.IO.StreamWriter objwriter;
objwriter = new System.IO.StreamWriter(file_name);
for (int i = 1; i <= intTemp; i++)
{
subtypeout = " ";
PotionType();
if (potiontypeout == "Dragon Control:")
DragonType();
if (potiontypeout == "Giant Control:")
GiantType();
if (potiontypeout == "Undead Control:")
UndeadType();
if (potiontypeout == "Giant Strength:")
GiantStrength();
if (potiontypeout == "Human Control:")
HumanControl();
if (potiontypeout == "Animal Control:")
AnimalControl();
Console.WriteLine(i + ". " + potiontypeout + " " + subtypeout);
objwriter.WriteLine(i + ". " + potiontypeout + " " + subtypeout);
//objwriter.WriteLine(" ");
//if (makefile != "x")
// Console.ReadLine();
//if (makefile == "x")
Console.WriteLine(" ");
//if (makefile == "x")
System.Threading.Thread.Sleep(400);
}
objwriter.Close();
Console.WriteLine("Request complete");
Console.ReadLine();
}
public static void PotionType()
{
Random rnd = new Random();
int randompotion = rnd.Next(1, 101);
if (randompotion < 04)
potiontypeout = "Animal Control:";
else
if (randompotion < 07)
potiontypeout = "Clairaudience ";
else
if (randompotion < 10)
potiontypeout = "Clairvoyance ";
else
if (randompotion < 13)
potiontypeout = "Climbing ";
else
if (randompotion < 16)
potiontypeout = "Delusion (next potion) ";
else
if (randompotion < 18)
potiontypeout = "Diminution ";
else
if (randompotion < 21)
potiontypeout = "Dragon Control:";
else
if (randompotion < 24)
potiontypeout = "ESP ";
else
if (randompotion < 27)
potiontypeout = "Extra Healing ";
else
if (randompotion < 30)
potiontypeout = "Fire Resistance ";
else
if (randompotion < 33)
potiontypeout = "Flying ";
else
if (randompotion < 35)
potiontypeout = "Gaseous Form ";
else
if (randompotion < 37)
potiontypeout = "Giant Control:";
else
if (randompotion < 40)
potiontypeout = "Giant Strength:";
else
if (randompotion < 42)
potiontypeout = "Growth ";
else
if (randompotion < 48)
potiontypeout = "Healing ";
else
if (randompotion < 50)
potiontypeout = "Heroism (F) ";
else
if (randompotion < 52)
potiontypeout = "Human Control:";
else
if (randompotion < 55)
potiontypeout = "Invisibility ";
else
if (randompotion < 58)
potiontypeout = "Invulnerability (F) ";
else
if (randompotion < 61)
potiontypeout = "Levitation ";
else
if (randompotion < 64)
potiontypeout = "Longevity ";
else
if (randompotion < 67)
potiontypeout = "Oil of Etherealness ";
else
if (randompotion < 70)
potiontypeout = "Oil of Slipperiness ";
else
if (randompotion < 72)
potiontypeout = "Philter of Love ";
else
if (randompotion < 76)
potiontypeout = "Philter of Persuasiveness ";
else
if (randompotion < 79)
potiontypeout = "Plant Control ";
else
if (randompotion < 82)
potiontypeout = "Polymorph Self ";
else
if (randompotion < 85)
potiontypeout = "Poison ";
else
if (randompotion < 88)
potiontypeout = "Speed ";
else
if (randompotion < 91)
potiontypeout = "Super-Heroism (F) ";
else
if (randompotion < 94)
potiontypeout = "Sweet Water ";
else
if (randompotion < 97)
potiontypeout = "Treasure Finding ";
else
if (randompotion < 98)
potiontypeout = "Undead Control:";
else
potiontypeout = "Water Breathing";
}
public static void DragonType()
{
Random rnd = new Random();
string[] ControlChoices01 = {
"Aquatic ",
"Astral ",
"Black ", "Black ",
"Blue ", "Blue ",
"Brass ","Brass ",
"Bronze ",
"Chameleo ", "Cloud ",
"Copper ","Copper ",
"Earth ", "Electrum ", "Faerie ",
"Gold ",
"Green ","Green ","Green ",
"Li Lung ",
"Mist ", "Night ", "Pan Lung ",
"Red ", "Rock ", "Sand ",
"Scintillating", "Sea ", "Shadow ",
"Shen Lung ", "Stone ", "Storm ",
"Swamp ", "Tien Lung ", "Tree ",
"Yu Lung ",
"White", "White",
"Evil", "Evil","Good"
};
int langrandom = rnd.Next(1, ControlChoices01.Length);
string randomcontrol = ControlChoices01[rnd.Next(ControlChoices01.Length)];
subtypeout = randomcontrol;
}
public static void GiantType()
{
Random rnd = new Random();
string[] ControlChoices02 = {
"Giant, Cloud ", "Giant, Fire ", "Giant, Firbolg ", "Giant, Fomorian ",
"Giant, Frost ", "Giant, Hill ", "Giant Lord ",
"Giant, Mist ", "Giant, Mountain ", "Giant, Sea ",
"Giant, Stone ", "Giant, Storm ", "Giant, Verbeeg ",
};
int langrandom = rnd.Next(1, ControlChoices02.Length);
string randomcontrol = ControlChoices02[rnd.Next(ControlChoices02.Length)];
subtypeout = randomcontrol;
}
public static void UndeadType()
{
Random rnd = new Random();
string[] ControlChoices03 = {
"Skeleton", "Zombie", "Ghoul", "Shadow", "Wight", "Ghast", "Wraith", "Mummy", "Spectre", "Vampire", "Ghost", "Lich",
"Appartion", "Coffer Corpse", "Huecuva", "Poltergist", "Sheet Phantom", "Son of Kyuss", "Juju Zombie", "Penangalan",
"Sheet Ghoul", "Skeleton Warrior",
};
int langrandom = rnd.Next(1, ControlChoices03.Length);
string randomcontrol = ControlChoices03[rnd.Next(ControlChoices03.Length)];
subtypeout = randomcontrol;
}
public static void GiantStrength()
{
Random rnd = new Random();
string[] ControlChoices04 = {
"Hill ","Hill ","Hill ","Hill ","Hill ","Hill ",
"Stone ","Stone ","Stone ","Stone ",
"Frost ","Frost ","Frost ","Frost ",
"Fire ","Fire ","Fire ",
"Cloud ","Cloud ",
"Storm ",
};
int langrandom = rnd.Next(1, ControlChoices04.Length);
string randomcontrol = ControlChoices04[rnd.Next(ControlChoices04.Length)];
subtypeout = randomcontrol;
}
public static void HumanControl()
{
Random rnd = new Random();
string[] ControlChoices05 = {
"Dwarves","Dwarves",
"Elves/Half-Elves","Elves/Half-Elves",
"Gnomes","Gnomes",
"Halflings","Halflings",
"Half-Orcs","Half-Orcs",
"Humans","Humans","Humans","Humans","Humans","Humans",
"Humanoids (gnolls, orcs, goblins, etc.)","Humanoids (gnolls, orcs, goblins, etc.)","Humanoids (gnolls, orcs, goblins, etc.)",
"Elves, Half-Elves, and Humans",
};
int langrandom = rnd.Next(1, ControlChoices05.Length);
string randomcontrol = ControlChoices05[rnd.Next(ControlChoices05.Length)];
subtypeout = randomcontrol;
}
public static void AnimalControl()
{
Random rnd = new Random();
string[] ControlChoices06 = {
"Mammal/Marsupial","Mammal/Marsupial","Mammal/Marsupial","Mammal/Marsupial",
"avian","avian","avian","avian",
"reptile/amphibian","reptile/amphibian","reptile/amphibian","reptile/amphibian",
"fish","fish","fish",
"mammal/marsupial/avian","mammal/marsupial/avian",
"repti!e/amphibian/fish","repti!e/amphibian/fish",
"all animal types"
};
int langrandom = rnd.Next(1, ControlChoices06.Length);
string randomcontrol = ControlChoices06[rnd.Next(ControlChoices06.Length)];
subtypeout = randomcontrol;
}
}
}