示例#1
0
        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", 0);
            baseMpMax = set.GetDouble("mp", 0);

            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", 0);
            baseRunSpd  = set.GetInt("runSpd", 1);

            collisionRadius = set.GetInt("radius");
            collisionHeight = set.GetInt("height");
        }
示例#2
0
        public PcTemplate(ClassId classId, StatsSet set)
            : base(set)
        {
            this.classId = classId;

            baseSwimSpd = set.GetInt("swimSpd", 1);

            fallingHeight = set.GetInt("falling_height", 333);

            collisionRadiusFemale = set.GetDouble("radiusFemale");
            collisionHeightFemale = set.GetDouble("heightFemale");

            spawnX = set.GetInt("spawnX");
            spawnY = set.GetInt("spawnY");
            spawnZ = set.GetInt("spawnZ");

            classBaseLevel = set.GetInt("baseLvl");

            string[] _hpTable = set.GetString("hpTable").Split(';');

            hpTable = new double[_hpTable.Length];

            for (int i = 0; i < _hpTable.Length; i++)
            {
                hpTable[i] = Double.Parse(_hpTable[i]);
            }

            string[] _mpTable = set.GetString("mpTable").Split(';');

            mpTable = new double[_mpTable.Length];
            for (int i = 0; i < _mpTable.Length; i++)
            {
                mpTable[i] = Double.Parse(_mpTable[i]);
            }

            string[] _cpTable = set.GetString("cpTable").Split(';');

            cpTable = new double[_cpTable.Length];
            for (int i = 0; i < _cpTable.Length; i++)
            {
                cpTable[i] = Double.Parse(_cpTable[i]);
            }
        }
示例#3
0
 public StatsSet(StatsSet set) : base(set)
 {
 }