public void SetAttribute(Character ThisToon, string AttName, int AttValue) { if (ThisToon.Attributes.ContainsKey(AttName)) { ThisToon.Attributes[AttName] = AttValue; if (ThisToon.AttributeMods.ContainsKey(AttName)) { ThisToon.AttributeMods[AttName] = Calcs.CalcMod(AttValue); } else { ThisToon.AttributeMods.Add(AttName, AttValue); } } else { ThisToon.Attributes.Add(AttName, AttValue); if (ThisToon.AttributeMods.ContainsKey(AttName)) { ThisToon.AttributeMods[AttName] = Calcs.CalcMod(AttValue); } else { ThisToon.AttributeMods.Add(AttName, AttValue); } } }
public void ReCalcSkills(Character ThisToon) { // THIS IS INCOMPLETE, FINISH AFTER SKILL PROFICIENCIES FORM // int stat = 0; // int modifier = 0; //ThisToon.SkillsList["Athletics"] = ThisToon.Attributes["Strength"]; ThisToon.SetSkill(ThisToon, "Athletics", ThisToon.StrMod); ThisToon.SetSkill(ThisToon, "Acrobatics", Calcs.CalcMod(ThisToon.Attributes["Dexterity"])); ThisToon.SetSkill(ThisToon, "Sleight of Hand", Calcs.CalcMod(ThisToon.Attributes["Dexterity"])); ThisToon.SetSkill(ThisToon, "Stealth", Calcs.CalcMod(ThisToon.Attributes["Dexterity"])); ThisToon.SetSkill(ThisToon, "Arcana", Calcs.CalcMod(ThisToon.Attributes["Intelligence"])); ThisToon.SetSkill(ThisToon, "History", Calcs.CalcMod(ThisToon.Attributes["Intelligence"])); ThisToon.SetSkill(ThisToon, "Investigation", Calcs.CalcMod(ThisToon.Attributes["Intelligence"])); ThisToon.SetSkill(ThisToon, "Nature", Calcs.CalcMod(ThisToon.Attributes["Intelligence"])); ThisToon.SetSkill(ThisToon, "Religion", Calcs.CalcMod(ThisToon.Attributes["Intelligence"])); ThisToon.SetSkill(ThisToon, "Animal Handling", Calcs.CalcMod(ThisToon.Attributes["Wisdom"])); ThisToon.SetSkill(ThisToon, "Insight", Calcs.CalcMod(ThisToon.Attributes["Wisdom"])); ThisToon.SetSkill(ThisToon, "Medicine", Calcs.CalcMod(ThisToon.Attributes["Wisdom"])); ThisToon.SetSkill(ThisToon, "Perception", Calcs.CalcMod(ThisToon.Attributes["Wisdom"])); ThisToon.SetSkill(ThisToon, "Survival", Calcs.CalcMod(ThisToon.Attributes["Wisdom"])); ThisToon.SetSkill(ThisToon, "Deception", Calcs.CalcMod(ThisToon.Attributes["Charisma"])); ThisToon.SetSkill(ThisToon, "Intimidation", Calcs.CalcMod(ThisToon.Attributes["Charisma"])); ThisToon.SetSkill(ThisToon, "Performance", Calcs.CalcMod(ThisToon.Attributes["Charisma"])); ThisToon.SetSkill(ThisToon, "Persuasion", Calcs.CalcMod(ThisToon.Attributes["Charisma"])); CalcSkillProficiency(ThisToon); }
public void SetAttMods(Character ThisToon) { AttributeMods.Add("Strength", Calcs.CalcMod(Strength)); AttributeMods.Add("Dexterity", Calcs.CalcMod(Dexterity)); AttributeMods.Add("Constitution", Calcs.CalcMod(Constitution)); AttributeMods.Add("Intelligence", Calcs.CalcMod(Intelligence)); AttributeMods.Add("Wisdom", Calcs.CalcMod(Wisdom)); AttributeMods.Add("Charisma", Calcs.CalcMod(Charisma)); ThisToon.StrMod = Calcs.CalcMod(Strength); ThisToon.DexMod = Calcs.CalcMod(Dexterity); ThisToon.ConMod = Calcs.CalcMod(Constitution); ThisToon.IntMod = Calcs.CalcMod(Intelligence); ThisToon.WisMod = Calcs.CalcMod(Wisdom); ThisToon.ChaMod = Calcs.CalcMod(Charisma); }