public Battle(Player player, int enemyLevel, bool isServant = false) { Player = player; WinExp = (enemyLevel * enemyLevel) / 2 + 25; LoseExp = enemyLevel * 5; BattleStrings = new List <BattleString>(); SelfName = player.UsingChar.Name; SelfAliases = player.UsingChar.Aliases; SelfType = player.UsingChar.CharType; SelfHint = player.UsingChar.Hint; SelfNP = player.UsingChar.NoblePhantasm; SelfNPPoint = 0; SelfDMGDealt = 1; SelfDMGTaken = 1; SelfStrength = player.PlayerStat.Strength + player.UsingChar.CharacterStat.Strength; SelfEndurance = player.PlayerStat.Endurance + player.UsingChar.CharacterStat.Endurance; SelfAgility = player.PlayerStat.Agility + player.UsingChar.CharacterStat.Agility; SelfMana = (player.PlayerStat.Mana + player.UsingChar.CharacterStat.Mana); SelfCurrentHealth = SelfMaxHealth - (player.UsingChar.Health - player.UsingChar.CurrentHealth); if (isServant) { Character enemy = CharList.Randomise(); EnemyName = enemy.Name; EnemyAliases = enemy.Aliases; EnemyType = enemy.CharType; EnemyHint = enemy.Hint; EnemyNP = enemy.NoblePhantasm; EnemyNPPoint = 0; EnemyDMGDealt = 1; EnemyDMGTaken = 1; EnemyStrength = enemy.CharacterStat.Strength + enemyLevel * 2 - 2; EnemyEndurance = enemy.CharacterStat.Endurance + enemyLevel * 2 - 2; EnemyAgility = enemy.CharacterStat.Agility + enemyLevel * 2 - 2; EnemyMana = enemy.CharacterStat.Mana + enemyLevel * 2 - 2; EnemyCurrentHealth = EnemyMaxHealth; IsServant = true; } else { NormEnemy enemy = NormCharList.Randomise(enemyLevel); EnemyName = enemy.Name; EnemyAliases = enemy.Aliases; EnemyHint = enemy.Hint; EnemyDMGDealt = 1; EnemyDMGTaken = 1; EnemyStrength = enemy.Stats.Strength; EnemyEndurance = enemy.Stats.Endurance; EnemyAgility = enemy.Stats.Agility; EnemyMana = enemy.Stats.Mana; EnemyCurrentHealth = EnemyMaxHealth; } EnemyLevel = enemyLevel; }
public Character(string name, List <CharacterAlias> aliases, Type type, NP noblePhantasm, string hint, int strength, int endurance, int agility, int mana, DMGMatter matter) { Name = name; Aliases = aliases; Level = 1; CharType = type; NoblePhantasm = noblePhantasm; Hint = hint; CharacterStat = new Stats(strength, endurance, agility, mana); DMGMatter = matter; CurrentHealth = Health; }
static void Create() { NP enumaElish = new NP("Enuma Elish", 5, 0.1, 0, 0, 0, 0, 0, 0, "strength"); List <CharacterAlias> gilgameshAliases = new List <CharacterAlias>() { new CharacterAlias("gilgamesh"), new CharacterAlias("humanity's oldest king"), new CharacterAlias("king of heroes of decadence"), new CharacterAlias("king of heroes"), new CharacterAlias("linchpin of heaven"), new CharacterAlias("king of uruk"), new CharacterAlias("king of babylonia"), new CharacterAlias("the golden king"), new CharacterAlias("gil"), new CharacterAlias("goldie"), new CharacterAlias("wedge of heaven") }; string gilgameshHint = "He ruled the Sumerian city-state of Uruk, the capital city of ancient Mesopotamia in the B.C. era. He was an ultimate, transcendent being so divine as to be two-thirds god and one-third human, and no others in the world could match him."; Character gilgamesh = new Character("Gilgamesh", gilgameshAliases, Type.Archer, enumaElish, gilgameshHint, 40, 30, 30, 50, DMGMatter.Strength); CharList.Append(gilgamesh); NP vasaviShakti = new NP("Vasavi Shakti", 7, 0, 0.4, 0, 0, 0, 0, 0, "strength"); List <CharacterAlias> karnaAliases = new List <CharacterAlias> { new CharacterAlias("karna"), new CharacterAlias("lancer of red"), new CharacterAlias("son of the sun god"), new CharacterAlias("hero of charity"), new CharacterAlias("launcher") }; string karnaHint = "The invulnerable hero of the Indian epic Mahabharata, as a hero on the vanquished side. The central conflict of The Mahabharata is the war over influence between the Pandava royal family and Kaurava royal family. Lancer became famous as the rival of Arjuna, the great hero of Hindu mythology."; Character karna = new Character("Karna", karnaAliases, Type.Lancer, vasaviShakti, karnaHint, 40, 30, 50, 40, DMGMatter.Strength); CharList.Append(karna); NP blueEyesWhiteDragon = new NP("Blue-Eyes White Dragon", 0, 0, 0, 0, 1.5, 0, 0.5, 0.3, "mana"); List <CharacterAlias> kaibaAliases = new List <CharacterAlias>() { new CharacterAlias("seto kaiba"), new CharacterAlias("kaiba"), new CharacterAlias("kaiba seto"), new CharacterAlias("kaiba - boy") }; string kaibanHint = "An intellectually gifted and innovative computer programmer, engineer, and inventor during his youth, he invented virtual software for playing video games as a young child prodigy."; Character setoKaiba = new Character("Seto Kaiba", kaibaAliases, Type.Caster, blueEyesWhiteDragon, kaibanHint, 15, 20, 25, 40, DMGMatter.Strength); CharList.Append(setoKaiba); List <CharacterAlias> fridonAliases = new List <CharacterAlias>() { new CharacterAlias("fridoni"), new CharacterAlias("frido"), new CharacterAlias("frodo") }; string fridonHint = "Character of Georgian poem \"The Knight in the Panther's Skin\" and brother in law of Tariel and Avtandil."; NormEnemy fridoni = new NormEnemy("Fridoni", 0, fridonAliases, fridonHint, 20, 10, 15); NormCharList.Append(fridoni); }