// health, maxHealth, archeryDamage, magikaDamage, meleeDamage, dodge, stamina, maxStamina, magika, maxMagika; public gStats(pStats stats) { arrNames = new string[] { "health", "maxHealth", "magikaDamage", "archeryDamage", "meleeDamage", "dodge", "stamina", "maxStamina", "magika", "maxMagika" }; arr = calculateBaseStats(stats.getStat("vitality"), stats.getStat("strength"), stats.getStat("endurance"), stats.getStat("intelligance"), stats.getStat("dexterity"), stats.getStat("faith"), stats.getStat("resistance")).arr; statName = "gameStats"; }
// Creates an instance based on the Primary Stats public resStats(pStats stats) { arrNames = new string[] { "airRes", "deathRes", "earthRes", "electrictyRes", "fireRes", "forbiddenRes", "holyRes", "iceRes", "organicRes", "poisonRes", "sorceryRes", "timeRes", "unholyRes", "waterRes" }; arr = calculateBaseRes(stats.getStat("vitality"), stats.getStat("strength"), stats.getStat("endurance"), stats.getStat("intelligance"), stats.getStat("dexterity"), stats.getStat("faith"), stats.getStat("resistance")).arr; statName = "resistanceStats"; }