예제 #1
0
        public static FiestaBaseStat Load(DataTableReaderEx reader, Job job)
        {
            FiestaBaseStat info = new FiestaBaseStat
            {
                Job           = job,
                Level         = reader.GetInt32("Level"),
                Strength      = reader.GetInt32("Strength"),
                Endurance     = reader.GetInt32("Constitution"),
                Intelligence  = reader.GetInt32("Intelligence"),
                Dexterity     = reader.GetInt32("Dexterity"),
                Spirit        = reader.GetInt32("MentalPower"),
                SoulHP        = reader.GetInt32("SoulHP"),
                MAXSoulHP     = reader.GetInt32("MAXSoulHP"),
                PriceHPStone  = reader.GetInt32("PriceHPStone"),
                SoulSP        = reader.GetInt32("SoulSP"),
                MAXSoulSP     = reader.GetInt32("MAXSoulSP"),
                PriceSPStone  = reader.GetInt32("PriceSPStone"),
                AtkPerAP      = reader.GetInt32("AtkPerAP"),
                DmgPerAP      = reader.GetInt32("DmgPerAP"),
                MaxPwrStone   = reader.GetInt32("MaxPwrStone"),
                NumPwrStone   = reader.GetInt32("NumPwrStone"),
                PricePwrStone = reader.GetInt32("PricePwrStone"),
                PwrStoneWC    = reader.GetInt32("PwrStoneWC"),
                PwrStoneMA    = reader.GetInt32("PwrStoneMA"),
                MaxGrdStone   = reader.GetInt32("MaxGrdStone"),
                NumGrdStone   = reader.GetInt32("NumGrdStone"),
                PriceGrdStone = reader.GetInt32("PriceGrdStone"),
                GrdStoneAC    = reader.GetInt32("GrdStoneAC"),
                GrdStoneMR    = reader.GetInt32("GrdStoneMR"),
                PainRes       = reader.GetInt32("PainRes"),
                RestraintRes  = reader.GetInt32("RestraintRes"),
                CurseRes      = reader.GetInt32("CurseRes"),
                ShockRes      = reader.GetInt32("ShockRes"),
                MaxHP         = (UInt32)reader.GetInt16("MaxHP"),
                MaxSP         = (UInt32)reader.GetInt16("MaxSP"),
                CharTitlePt   = reader.GetInt32("CharTitlePt"),
                SkillPwrPt    = reader.GetInt32("SkillPwrPt"),
            };

            return(info);
        }
예제 #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;
        }
예제 #3
0
 public static FiestaBaseStat Load(DataTableReaderEx reader, Job job)
 {
     FiestaBaseStat info = new FiestaBaseStat
     {
         Job = job,
         Level = reader.GetInt32("Level"),
         Strength = reader.GetInt32("Strength"),
         Endurance = reader.GetInt32("Constitution"),
         Intelligence = reader.GetInt32("Intelligence"),
         Dexterity = reader.GetInt32("Dexterity"),
         Spirit = reader.GetInt32("MentalPower"),
         SoulHP = reader.GetInt32("SoulHP"),
         MAXSoulHP = reader.GetInt32("MAXSoulHP"),
         PriceHPStone = reader.GetInt32("PriceHPStone"),
         SoulSP = reader.GetInt32("SoulSP"),
         MAXSoulSP = reader.GetInt32("MAXSoulSP"),
         PriceSPStone = reader.GetInt32("PriceSPStone"),
         AtkPerAP = reader.GetInt32("AtkPerAP"),
         DmgPerAP = reader.GetInt32("DmgPerAP"),
         MaxPwrStone = reader.GetInt32("MaxPwrStone"),
         NumPwrStone = reader.GetInt32("NumPwrStone"),
         PricePwrStone = reader.GetInt32("PricePwrStone"),
         PwrStoneWC = reader.GetInt32("PwrStoneWC"),
         PwrStoneMA = reader.GetInt32("PwrStoneMA"),
         MaxGrdStone = reader.GetInt32("MaxGrdStone"),
         NumGrdStone = reader.GetInt32("NumGrdStone"),
         PriceGrdStone = reader.GetInt32("PriceGrdStone"),
         GrdStoneAC = reader.GetInt32("GrdStoneAC"),
         GrdStoneMR = reader.GetInt32("GrdStoneMR"),
         PainRes = reader.GetInt32("PainRes"),
         RestraintRes = reader.GetInt32("RestraintRes"),
         CurseRes = reader.GetInt32("CurseRes"),
         ShockRes = reader.GetInt32("ShockRes"),
         MaxHP = (UInt32)reader.GetInt16("MaxHP"),
         MaxSP = (UInt32)reader.GetInt16("MaxSP"),
         CharTitlePt = reader.GetInt32("CharTitlePt"),
         SkillPwrPt = reader.GetInt32("SkillPwrPt"),
     };
     return info;
 }