BitCollectors.QfgCharacterEditor.Library.QfgCharacter.SetMaxValues C# (CSharp) Method

SetMaxValues() public method

public SetMaxValues ( ) : void
return void
        public void SetMaxValues()
        {
            this.Strength = this.QfgGameInfo.MaxCharacterStatValue;
            this.Intelligence = this.QfgGameInfo.MaxCharacterStatValue;
            this.Agility = this.QfgGameInfo.MaxCharacterStatValue;
            this.Vitality = this.QfgGameInfo.MaxCharacterStatValue;
            this.Luck = this.QfgGameInfo.MaxCharacterStatValue;
            this.WeaponUse = this.QfgGameInfo.MaxCharacterStatValue;
            this.Dodge = this.QfgGameInfo.MaxCharacterStatValue;
            this.Parry = this.QfgGameInfo.MaxCharacterStatValue;
            this.Stealth = this.QfgGameInfo.MaxCharacterStatValue;
            this.PickLocks = this.QfgGameInfo.MaxCharacterStatValue;
            this.Climbing = this.QfgGameInfo.MaxCharacterStatValue;
            this.Throwing = this.QfgGameInfo.MaxCharacterStatValue;
            this.Magic = this.QfgGameInfo.MaxCharacterStatValue;

            if (this.AcrobaticsEnabled)
                this.Acrobatics = this.QfgGameInfo.MaxCharacterStatValue;

            if (this.CommunicationEnabled)
                this.Communication = this.QfgGameInfo.MaxCharacterStatValue;

            if (this.HonorEnabled)
                this.Honor = this.QfgGameInfo.MaxCharacterStatValue;

            this.MagicSkillCalm = this.QfgGameInfo.MaxMagicStatValue;
            this.MagicSkillDazzle = this.QfgGameInfo.MaxMagicStatValue;
            this.MagicSkillDetect = this.QfgGameInfo.MaxMagicStatValue;
            this.MagicSkillFetch = this.QfgGameInfo.MaxMagicStatValue;
            this.MagicSkillFlame = this.QfgGameInfo.MaxMagicStatValue;
            this.MagicSkillOpen = this.QfgGameInfo.MaxMagicStatValue;
            this.MagicSkillTrigger = this.QfgGameInfo.MaxMagicStatValue;
            this.MagicSkillZap = this.QfgGameInfo.MaxMagicStatValue;

            if (this.MagicSkillForceBoltEnabled)
                this.MagicSkillForceBolt = this.QfgGameInfo.MaxMagicStatValue;

            if (this.MagicSkillLevitateEnabled)
                this.MagicSkillLevitate = this.QfgGameInfo.MaxMagicStatValue;

            if (this.MagicSkillReversalEnabled)
                this.MagicSkillReversal = this.QfgGameInfo.MaxMagicStatValue;

            this.InventoryDaggers = this.QfgGameInfo.MaxDaggers;
            this.InventoryHealingPotions = this.QfgGameInfo.MaxHealingPotions;
            this.InventoryMagicPotions = this.QfgGameInfo.MaxMagicPotions;
            this.InventoryVigorPotions = this.QfgGameInfo.MaxVigorPotions;

            if (this.InventoryPoisonCurePotionEnabled)
                this.InventoryPoisonCurePotions = this.QfgGameInfo.MaxPoisonCurePotions;
        }

Usage Example

        public ActionResult MaxStats(QfgCharacter qfgCharacter)
        {
            ResetModelState();

            qfgCharacter.SetMaxValues();

            switch (Request.Form["Page"].ToLower())
            {
                case "inventory":
                    return Inventory(qfgCharacter);

                case "magicstats":
                    return MagicStats(qfgCharacter);

                case "characterstats":
                    return CharacterStats(qfgCharacter);

                default:
                    return General(qfgCharacter);
            }


            //RedirectToAction(Request.Form["Page"], )

            

            //return View(Request.Form["Page"], qfgCharacter);
        }
All Usage Examples Of BitCollectors.QfgCharacterEditor.Library.QfgCharacter::SetMaxValues