Ejemplo n.º 1
0
        public static FiestaBaseStat Load(DataRow row, Job job)
        {
            var info = new FiestaBaseStat
            {
                Job             = job,
                Level           = (int)row["Level"],
                Strength        = (int)row["Strength"],
                Endurance       = (int)row["Constitution"],
                Intelligence    = (int)row["Intelligence"],
                Dexterity       = (int)row["Dexterity"],
                Spirit          = (int)row["MentalPower"],
                SoulHP          = (int)row["SoulHP"],
                MaxSoulHP       = (int)row["MAXSoulHP"],
                PriceHPStone    = (int)row["PriceHPStone"],
                SoulSP          = (int)row["SoulSP"],
                MaxSoulSP       = (int)row["MAXSoulSP"],
                PriceSPStone    = (int)row["PriceSPStone"],
                AtkPerAP        = (int)row["AtkPerAP"],
                DmgPerAP        = (int)row["DmgPerAP"],
                MaxPwrStone     = (int)row["MaxPwrStone"],
                NumPwrStone     = (int)row["NumPwrStone"],
                PricePwrStone   = (int)row["PricePwrStone"],
                PwrStoneWC      = (int)row["PwrStoneWC"],
                PwrStoneMA      = (int)row["PwrStoneMA"],
                MaxGrdStone     = (int)row["MaxGrdStone"],
                NumGrdStone     = (int)row["NumGrdStone"],
                PriceGrdStone   = (int)row["PriceGrdStone"],
                GrdStoneAC      = (int)row["GrdStoneAC"],
                GrdStoneMR      = (int)row["GrdStoneMR"],
                PainRes         = (int)row["PainRes"],
                RestraintRes    = (int)row["RestraintRes"],
                CurseRes        = (int)row["CurseRes"],
                ShockRes        = (int)row["ShockRes"],
                MaxHP           = (ushort)(int)row["MaxHP"],
                MaxSP           = (ushort)(int)row["MaxSP"],
                CharTitlePt     = (int)row["CharTitlePt"],
                SkillPwrPt      = (int)row["SkillPwrPt"],
                SPStoneEffectID = (int)row["SPStoneEffectID"],
                HPStoneEffectID = (int)row["HPStoneEffectID"]
            };

            return(info);
        }
Ejemplo n.º 2
0
        public static FiestaBaseStat Load(DataRow row, Job job)
        {
            FiestaBaseStat info = new FiestaBaseStat
            {
                Job = job,
                Level = (int)row["Level"],
                Strength = (int)row["Strength"],
                Endurance = (int)row["Constitution"],
                Intelligence = (int)row["Intelligence"],
                Dexterity = (int)row["Dexterity"],
                Spirit = (int)row["MentalPower"],
                SoulHP = (int)row["SoulHP"],
                MaxSoulHP = (int)row["MAXSoulHP"],
                PriceHPStone = (int)row["PriceHPStone"],
                SoulSP = (int)row["SoulSP"],
                MaxSoulSP = (int)row["MAXSoulSP"],
                PriceSPStone = (int)row["PriceSPStone"],
                AtkPerAP = (int)row["AtkPerAP"],
                DmgPerAP = (int)row["DmgPerAP"],
                MaxPwrStone = (int)row["MaxPwrStone"],
                NumPwrStone = (int)row["NumPwrStone"],
                PricePwrStone = (int)row["PricePwrStone"],
                PwrStoneWC = (int)row["PwrStoneWC"],
                PwrStoneMA = (int)row["PwrStoneMA"],
                MaxGrdStone = (int)row["MaxGrdStone"],
                NumGrdStone = (int)row["NumGrdStone"],
                PriceGrdStone = (int)row["PriceGrdStone"],
                GrdStoneAC = (int)row["GrdStoneAC"],
                GrdStoneMR = (int)row["GrdStoneMR"],
                PainRes = (int)row["PainRes"],
                RestraintRes = (int)row["RestraintRes"],
                CurseRes = (int)row["CurseRes"],
                ShockRes = (int)row["ShockRes"],
                MaxHP = (ushort)(int)row["MaxHP"],
                MaxSP = (ushort)(int)row["MaxSP"],
                CharTitlePt = (int)row["CharTitlePt"],
                SkillPwrPt = (int)row["SkillPwrPt"],
                SPStoneEffectID = (int)row["SPStoneEffectID"],
                HPStoneEffectID = (int)row["HPStoneEffectID"]

            };

            return info;
        }