Exemple #1
0
 static MonStat()
 {
     foreach (MonStat stat in sheet)
     {
         var key = stat.id.ToLower();
         if (stats.ContainsKey(key))
         {
             stats.Remove(key);
         }
         stats.Add(key, stat);
         stat.ext         = MonStatsExtended.Find(stat.monStatEx);
         stat.name        = stat.nameStr == null ? null : Translation.Find(stat.nameStr);
         stat.minion1     = stat.minion1Id == null ? null : Find(stat.minion1Id);
         stat.minion2     = stat.minion2Id == null ? null : Find(stat.minion2Id);
         stat.sound       = MonSound.Find(stat.monSoundId);
         stat.uniqueSound = MonSound.Find(stat.uMonSoundId);
         foreach (var tcInfo in stat.treasureClass)
         {
             tcInfo.normal   = TreasureClass.Find(tcInfo._normal);
             tcInfo.champion = TreasureClass.Find(tcInfo._champion);
             tcInfo.unique   = TreasureClass.Find(tcInfo._unique);
             tcInfo.quest    = TreasureClass.Find(tcInfo._quest);
         }
     }
 }
Exemple #2
0
 static MonStat()
 {
     foreach(MonStat stat in sheet)
     {
         var key = stat.id.ToLower();
         if (monStats.ContainsKey(key))
         {
             monStats.Remove(key);
         }
         monStats.Add(key, stat);
         stat.ext = MonStatsExtended.Find(stat.monStatEx);
         stat.name = stat.nameStr == null ? null : Translation.Find(stat.nameStr);
         stat.minion1 = stat.minion1Id == null ? null : Find(stat.minion1Id);
         stat.minion2 = stat.minion2Id == null ? null : Find(stat.minion2Id);
         stat.sound = MonSound.Find(stat.monSoundId);
         stat.uniqueSound = MonSound.Find(stat.uMonSoundId);
         for(int i = 0; i < stat.treasureClass.Length; ++i)
         {
             stat.treasureClass[i].normal = TreasureClass.Find(stat.treasureClass[i]._normal);
             stat.treasureClass[i].champion = TreasureClass.Find(stat.treasureClass[i]._champion);
             stat.treasureClass[i].unique = TreasureClass.Find(stat.treasureClass[i]._unique);
             stat.treasureClass[i].quest = TreasureClass.Find(stat.treasureClass[i]._quest);
         }
     }
 }
Exemple #3
0
        public static void LoadAll()
        {
            var sw = System.Diagnostics.Stopwatch.StartNew();

            Translation.Load();
            SoundInfo.Load();
            SoundEnvironment.Load();
            ObjectInfo.Load();
            BodyLoc.Load();
            ExpTable.Load();
            LevelType.Load();
            LevelWarpInfo.Load();
            LevelPreset.Load();
            LevelMazeInfo.Load();
            LevelInfo.Load();
            OverlayInfo.Load();
            MissileInfo.Load();
            ItemStat.Load();
            ItemRatio.Load();
            ItemType.Load();
            ItemPropertyInfo.Load();
            ItemSet.Load();
            UniqueItem.Load();
            SetItem.Load();
            TreasureClass.Load();
            MagicAffix.Load();
            CharStatsInfo.Load();
            MonLvl.Load();
            MonPreset.Load();
            MonSound.Load();
            MonStatsExtended.Load();
            MonStat.Load();
            SuperUnique.Load();
            SkillDescription.Load();
            SkillInfo.Load();
            SpawnPreset.Load();
            StateInfo.Load();
            Debug.Log("All txt files loaded in " + sw.ElapsedMilliseconds + " ms");
        }