コード例 #1
0
 public Chest()
 {
     for (int i = 0; i < 10; i++)
     {
         ChestItem[i] = new ChestItem("None", 0, 1);
     }
 }
コード例 #2
0
        public Chest(string name, int money, int exp, int reqlvl, int traplvl, int key, int damage, int npcspawn, int npcamount)
        {
            Name          = name;
            Money         = money;
            Experience    = exp;
            RequiredLevel = reqlvl;
            TrapLevel     = traplvl;
            Key           = key;
            Damage        = damage;
            NpcSpawn      = npcspawn;
            SpawnAmount   = npcamount;

            for (int i = 0; i < 10; i++)
            {
                ChestItem[i] = new ChestItem("None", 0, 1);
            }
        }