public ShardPlate() { name = "Shard Plate"; ac = 100; classes = new PlayerClass[] { new Barbarian(), new Bard(), new Cleric(), new Druid(), new Fighter(), new Monk(), new Paladin(), new Ranger(), new Rogue(), new Sorcerer(), new Warlock(), new Wizard() }; }
public void InitPlayer(PlayerClass playerClass) { characterStats.PCclass = playerClass.name; characterStats.str += playerClass.str; characterStats.dex += playerClass.dex; characterStats.con += playerClass.con; characterStats.wis += playerClass.wis; characterStats.intel += playerClass.intel; characterStats.cha += playerClass.cha; characterStats.maxSpellPoints = playerClass.playerSpellPoints; characterStats.spellPoints = playerClass.playerSpellPoints; playerStats.strSaving = playerClass.strSaving; playerStats.dexSaving = playerClass.dexSaving; playerStats.constSaving = playerClass.constSaving; playerStats.intSaving = playerClass.intSaving; playerStats.wisSaving = playerClass.wisSaving; playerStats.chaSaving = playerClass.chaSaving; playerStats.acrobatics = playerClass.acrobatics; playerStats.animalHandling = playerClass.animalHandling; playerStats.arcana = playerClass.arcana; playerStats.athletics = playerClass.athletics; playerStats.deception = playerClass.deception; playerStats.history = playerClass.history; playerStats.insight = playerClass.insight; playerStats.intimidation = playerClass.intimidation; playerStats.investigation = playerClass.investigation; playerStats.medicine = playerClass.medicine; playerStats.nature = playerClass.nature; playerStats.perception = playerClass.perception; playerStats.performance = playerClass.performance; playerStats.persuasion = playerClass.persuasion; playerStats.religion = playerClass.religion; playerStats.sleightOfHand = playerClass.sleightOfHand; playerStats.stealth = playerClass.stealth; playerStats.survival = playerClass.survival; Random r = new Random(); characterStats.str += r.Next(1, 2); characterStats.dex += r.Next(1, 2); characterStats.con += r.Next(1, 2); characterStats.wis += r.Next(1, 2); characterStats.intel += r.Next(1, 2); characterStats.cha += r.Next(1, 2); characterStats.gold = r.Next(2, 7) * 100; characterStats.maxHealth = characterStats.con + 10; characterStats.health = characterStats.maxHealth; characterStats.str = Math.Min(characterStats.str, 5); characterStats.dex = Math.Min(characterStats.dex, 5); characterStats.con = Math.Min(characterStats.con, 5); characterStats.wis = Math.Min(characterStats.wis, 5); characterStats.intel = Math.Min(characterStats.intel, 5); characterStats.cha = Math.Min(characterStats.cha, 5); characterStats.meleeATKBonus = 2 + characterStats.str; characterStats.rangedATKBonus = 2 + characterStats.dex; if (playerClass.spellModifier == "str") { characterStats.spellModifier = characterStats.str; } else if (playerClass.spellModifier == "dex") { characterStats.spellModifier = characterStats.dex; } else if (playerClass.spellModifier == "con") { characterStats.spellModifier = characterStats.con; } else if (playerClass.spellModifier == "intel") { characterStats.spellModifier = characterStats.intel; } else if (playerClass.spellModifier == "wis") { characterStats.spellModifier = characterStats.wis; } else if (playerClass.spellModifier == "cha") { characterStats.spellModifier = characterStats.cha; } }