public CharTemplate(StatsSet set) { BaseStr = set.GetInt("str", 40); BaseCon = set.GetInt("con", 21); BaseDex = set.GetInt("dex", 30); BaseInt = set.GetInt("int", 20); BaseWit = set.GetInt("wit", 43); BaseMen = set.GetInt("men", 20); _baseHpMax = set.GetDouble("hp"); _baseMpMax = set.GetDouble("mp"); BaseHpReg = set.GetDouble("hpRegen", 1.5d); BaseMpReg = set.GetDouble("mpRegen", 0.9d); BasePAtk = set.GetDouble("pAtk"); BaseMAtk = set.GetDouble("mAtk"); BasePDef = set.GetDouble("pDef"); BaseMDef = set.GetDouble("mDef"); BasePAtkSpd = set.GetInt("atkSpd", 300); BaseCritRate = set.GetInt("crit", 4); BaseWalkSpd = set.GetInt("walkSpd"); BaseRunSpd = set.GetInt("runSpd", 1); CollisionRadius = set.GetDouble("radius"); CollisionHeight = set.GetDouble("height"); }
public Weapon(StatsSet set) : base(set) { Type = Utilz.GetEnumFromString(set.GetString("weaponType", "none"), WeaponTypeId.None); SoulshotCount = set.GetInt("soulshots"); SpiritshotCount = set.GetInt("spiritshots"); PDam = set.GetInt("p_dam"); RndDam = set.GetInt("rnd_dam"); Critical = set.GetInt("critical"); HitModifier = set.GetDouble("hit_modify"); AvoidModifier = set.GetInt("avoid_modify"); ShieldDef = set.GetInt("shield_def"); ShieldDefRate = set.GetDouble("shield_def_rate"); AtkSpeed = set.GetInt("atk_speed"); AtkReuse = set.GetInt("atk_reuse", Type == WeaponTypeId.Bow ? 1500 : 0); MpConsume = set.GetInt("mp_consume"); MDam = set.GetInt("m_dam"); }