public EnemyDropList FindSimpleLocalMaps(string iname) { if (string.IsNullOrEmpty(iname)) { return((EnemyDropList)null); } this.CompleteLoading(); EnemyDropList enemyDropList1; if (this.mSimpleLocalMapsDict.TryGetValue(iname, out enemyDropList1)) { return(enemyDropList1); } EnemyDropList enemyDropList2 = new EnemyDropList(); for (int index1 = this.mSimpleLocalMaps.Count - 1; index1 >= 0; --index1) { if (!(this.mSimpleLocalMaps[index1].iname != iname) && this.mSimpleLocalMaps[index1].droplist != null) { for (int index2 = 0; index2 < this.mSimpleLocalMaps[index1].droplist.Length; ++index2) { if (!string.IsNullOrEmpty(this.mSimpleLocalMaps[index1].droplist[index2])) { SimpleDropTableList simpleDropTables = this.FindSimpleDropTables(this.mSimpleLocalMaps[index1].droplist[index2]); enemyDropList2.drp_tbls.Add(simpleDropTables); } } } } this.mSimpleLocalMapsDict.Add(iname, enemyDropList2); return(enemyDropList2); }
private List <BattleCore.DropItemParam> GetEnemyDropItemParams(string quest_iname, DateTime date_time) { QuestParam quest = MonoSingleton <GameManager> .Instance.FindQuest(quest_iname); if (quest == null || quest.map.Count <= 0) { return((List <BattleCore.DropItemParam>)null); } EnemyDropList simpleLocalMaps = this.FindSimpleLocalMaps(quest.map[0].mapSetName); if (simpleLocalMaps == null) { return((List <BattleCore.DropItemParam>)null); } return(this.GetCurrTimeDropItemParams(simpleLocalMaps.drp_tbls, date_time)); }