public override BattleResultModel GetBattleResult() { if (_cache_result != null) { return(_cache_result); } Dictionary <int, int> dic = new Dictionary <int, int>(); DeckModel deck = base.UserInfo.GetDeck(base.DeckId); deck.__CreateShipExpRatesDictionary__(ref dic); deck = base.UserInfo.GetDeck(base.EnemyDeckId); deck.__CreateShipExpRatesDictionary__(ref dic); BattleResultFmt battleResultFmt = _GetBattleResult(); if (battleResultFmt == null) { return(null); } _cache_result = new BattleResultModel(base.DeckId, base.EnemyDeckId, this, battleResultFmt, _ships_f, _ships_e, dic); return(_cache_result); }
public override BattleResultModel GetBattleResult() { if (this._cache_result != null) { return(this._cache_result); } Dictionary <int, int> exp_rates_before = new Dictionary <int, int>(); DeckModel deck = base.UserInfo.GetDeck(base.DeckId); deck.__CreateShipExpRatesDictionary__(ref exp_rates_before); deck = base.UserInfo.GetDeck(base.EnemyDeckId); deck.__CreateShipExpRatesDictionary__(ref exp_rates_before); BattleResultFmt battleResultFmt = this._GetBattleResult(); if (battleResultFmt == null) { return(null); } this._cache_result = new BattleResultModel(base.DeckId, base.EnemyDeckId, this, battleResultFmt, this._ships_f, this._ships_e, exp_rates_before); return(this._cache_result); }
public override BattleResultModel GetBattleResult() { if (this._cache_result != null) { return(this._cache_result); } DeckModel deck = base.UserInfo.GetDeck(base.DeckId); Dictionary <int, int> exp_rates_before = new Dictionary <int, int>(); deck.__CreateShipExpRatesDictionary__(ref exp_rates_before); BattleResultFmt battleResultFmt = this._GetBattleResult(); if (battleResultFmt == null) { return(null); } this._cache_result = new BattleResultModel(base.DeckId, this, battleResultFmt, this._ships_f, this._ships_e, this._map, exp_rates_before); if (this._cache_result.WinRank == BattleWinRankKinds.S) { Comm_UserDatas.Instance.User_trophy.Win_S_count++; } List <int> reOpenMapIDs = this._cache_result.ReOpenMapIDs; if (reOpenMapIDs != null && reOpenMapIDs.get_Count() > 0) { for (int i = 0; i < reOpenMapIDs.get_Count(); i++) { int num = (int)Math.Floor((double)reOpenMapIDs.get_Item(i) / 10.0); int num2 = reOpenMapIDs.get_Item(i) % 10; if (base.Map.AreaId != num && num2 == 1) { TrophyUtil.__tmp_area_reopen__ = true; } } } return(this._cache_result); }