// Token: 0x06001172 RID: 4466 RVA: 0x001E8F24 File Offset: 0x001E7124 private void SetHeroEntrence() { BuildsData buildingData = GUIManager.Instance.BuildingData; buildingData.GetBuildSprite(13, this.spriteRender, this.LevelRender); this.spriteRender.transform.localPosition = new Vector3(-5.17f, 5.7f, 62f); }
// Token: 0x06000861 RID: 2145 RVA: 0x000A89D0 File Offset: 0x000A6BD0 public void updateCastleSkinBonus(uint[] EffVal) { BuildsData buildingData = GUIManager.Instance.BuildingData; if (buildingData.castleSkin.SkinUnlock != null && buildingData.castleSkin.SkinLevel != null && buildingData.GetBuildData(8, 0).Level >= 9) { BSInvokeUtil.DllCSCalculateCastleSKinBonus(this.m_pCSObject, buildingData.castleSkin.SkinUnlock, buildingData.castleSkin.SkinLevel, EffVal); } }
// Token: 0x06001480 RID: 5248 RVA: 0x0023AF98 File Offset: 0x00239198 public override void SetCompleteWhileLogin() { BuildsData buildingData = GUIManager.Instance.BuildingData; for (int i = 0; i < this.ManorBuildData.Length; i++) { ushort num = (ushort)(i + 1); byte level = buildingData.GetBuildData(num, 0).Level; this.UpdateCheckIndex(num, (ushort)level); } }
// Token: 0x06001194 RID: 4500 RVA: 0x001ECAEC File Offset: 0x001EACEC private void ShowBuildCompleteEffect() { Vector3 localPosition = this.SpriteGameObject[(int)this.UpdateIndex].transform.localPosition; BuildsData buildingData = GUIManager.Instance.BuildingData; if (this.EffectBuildComplete != null) { ParticleManager.Instance.DeSpawn(this.EffectBuildComplete); this.EffectBuildComplete = null; } if (buildingData.ImmEffect == 1) { buildingData.ImmEffect = 0; if (buildingData.AllBuildsData[(int)this.Builds[(int)this.UpdateIndex].Index].BuildID == 8) { this.EffectBuildComplete = ParticleManager.Instance.Spawn(347, null, localPosition, 1f, true, false, true); this.MainTownLevelEffect(); } else { this.EffectBuildComplete = ParticleManager.Instance.Spawn(331, null, localPosition, 1f, true, false, true); } AudioManager.Instance.PlayMP3SFX(41036, 0.2f); } else if (buildingData.ImmEffect == 0) { if (buildingData.AllBuildsData[(int)this.Builds[(int)this.UpdateIndex].Index].BuildID == 8) { this.EffectBuildComplete = ParticleManager.Instance.Spawn(346, null, localPosition, 1f, true, false, true); this.MainTownLevelEffect(); } else { this.EffectBuildComplete = ParticleManager.Instance.Spawn(294, null, localPosition, 1f, true, false, true); } AudioManager.Instance.PlayMP3SFX(41036, 0f); } this.ShowNoticeIcon(); Quaternion localRotation = this.EffectBuildComplete.transform.localRotation; localRotation.eulerAngles = new Vector3(0f, 180f, 0f); this.EffectBuildComplete.transform.localRotation = localRotation; this.MotionIndex = -1; }
// Token: 0x06001186 RID: 4486 RVA: 0x001EB4E4 File Offset: 0x001E96E4 public void Initial() { bool flag = DataManager.StageDataController._stageMode == StageMode.Dare; if (flag && this.Type == WorldMode.OpenUp) { this.mapspriteManager.LoadChallegeFrame(); } byte b = 0; while ((ushort)b < this.BuildSpritesMax) { if (this.Type == WorldMode.Wild) { if (this.Builds[(int)b] == null) { this.Builds[(int)b] = new Build(); } BuildManorData recordByIndex = DataManager.Instance.BuildManorData.GetRecordByIndex((int)GUIManager.Instance.BuildingData.GetMonorIndex((int)b)); this.Builds[(int)b].Index = recordByIndex.ID; this.SpriteGameObject[(int)b] = this.Builds[(int)b].InitialSprite(this.mapspriteManager); this.SpriteGameObject[(int)b].transform.parent.SetParent(this.MapSpriteRoot.transform); BuildsData buildingData = GUIManager.Instance.BuildingData; if (buildingData.AllBuildsData[(int)recordByIndex.ID].BuildID == 18) { Build build = this.Builds[(int)b] as Build; this.JailNoticeIcon = build.spriteRender.gameObject.GetComponent <JailBuildNotice>(); if (this.JailNoticeIcon == null) { this.JailNoticeIcon = build.spriteRender.gameObject.AddComponent <JailBuildNotice>(); this.JailNoticeIcon.Init(this.mapspriteManager); } } } else { if (this.Builds[(int)b] == null) { if (flag) { this.Builds[(int)b] = new ChallengeCampaign(); } else { this.Builds[(int)b] = new Campaign(); } } this.Builds[(int)b].Index = (ushort)((b + 1) * 3); this.SpriteGameObject[(int)b] = this.Builds[(int)b].InitialSprite(this.mapspriteManager); this.SpriteGameObject[(int)b].transform.SetParent(this.MapSpriteRoot.transform); } b += 1; } if (this.Type == WorldMode.Wild) { this.HeroBuild.Index = 100; this.ArenaBuild.Index = 101; this.DugoutBuild.Index = 102; this.Fortress.Index = 103; this.BlackMarket.Index = 104; this.Laboratory.Index = 105; this.Carsino.Index = 106; this.SpriteGameObject[this.SpriteGameObject.Length - 7] = this.Carsino.InitialSprite(this.mapspriteManager); this.SpriteGameObject[this.SpriteGameObject.Length - 6] = this.Laboratory.InitialSprite(this.mapspriteManager); this.SpriteGameObject[this.SpriteGameObject.Length - 5] = this.BlackMarket.InitialSprite(this.mapspriteManager); this.SpriteGameObject[this.SpriteGameObject.Length - 4] = this.Fortress.InitialSprite(this.mapspriteManager); this.SpriteGameObject[this.SpriteGameObject.Length - 3] = this.DugoutBuild.InitialSprite(this.mapspriteManager); this.SpriteGameObject[this.SpriteGameObject.Length - 2] = this.HeroBuild.InitialSprite(this.mapspriteManager); this.SpriteGameObject[this.SpriteGameObject.Length - 1] = this.ArenaBuild.InitialSprite(this.mapspriteManager); if (GUIManager.Instance.BuildingData.BuildingManorID > 0) { this.UpdateMapSprite(GUIManager.Instance.BuildingData.BuildingManorID, 2); } this.InitLock(); this.UpdateDiamon(); } this.GuideManorID = 0; this.GuideBuildID = 0; }
// Token: 0x06001190 RID: 4496 RVA: 0x001EC44C File Offset: 0x001EA64C public void UpdateMapSprite(ushort ID, byte State) { if (ID == 0) { return; } int num = (int)ID; if (this.Type == WorldMode.Wild) { switch (State) { case 5: if (this.HeroBuild != null) { this.HeroBuild.Update(State); } if (this.ArenaBuild != null) { this.ArenaBuild.Update(State); } if (this.DugoutBuild != null) { this.DugoutBuild.Update(State); } if (this.Fortress != null) { this.Fortress.Update(State); } if (this.BlackMarket != null) { this.BlackMarket.Update(State); } if (this.Laboratory != null) { this.Laboratory.Update(State); } if (this.Carsino != null) { this.Carsino.Update(State); } this.UpdateDiamon(); for (int i = this.Builds.Length; i > 0; i--) { this.Builds[i - 1].Update(State); } return; case 6: this.Initial(); return; case 7: if (this.EffectBuildComplete != null) { ParticleManager.Instance.DeSpawn(this.EffectBuildComplete); this.EffectBuildComplete = null; } return; case 8: case 9: for (int j = this.Builds.Length; j > 0; j--) { this.Builds[j - 1].Update(State); } return; case 10: if (this.GuildPoint != null) { this.GuildPoint.enabled = false; } return; case 11: if (this.JailNoticeIcon != null) { this.JailNoticeIcon.UpdateData(); } return; default: { if (GUIManager.Instance.BuildingData.AllBuildsData.Length <= (int)ID) { return; } for (int k = 0; k < this.Builds.Length; k++) { if (this.Builds[k].Index == ID) { num = k; } } this.UpdateIndex = (ushort)num; BuildsData buildingData = GUIManager.Instance.BuildingData; byte level = buildingData.AllBuildsData[(int)ID].Level; if (this.MotionTransform != null) { Vector3 source = this.Source; if (this.Change < 0f) { source.y = this.Source.y; } else { source.y = this.Source.y + this.Change; } this.MotionTransform.position = source; this.Builds[this.MotionIndex].Update(3); this.MotionTransform = null; this.MotionIndex = -1; MotionEffect.RemoveStack(this.EasingIndex); } if (buildingData.AllBuildsData[(int)ID].BuildID == 16 && buildingData.BuildingManorID != this.Builds[num].Index && State == 3 && (level == 1 || level == 3 || level == 6 || level == 9)) { this.Builds[num].Update(0); this.MotionTransform = this.SpriteGameObject[num].transform; this.Source = this.MotionTransform.position; this.Change = -32f; this.DeltaTime = 0f; this.TotalTime = 2f; this.WaitTime = 1f; this.DownUp = 1; this.MotionIndex = num; this.EasingIndex = MotionEffect.SetStack(this.BuildMotion); } else if (buildingData.BuildingManorID != this.Builds[num].Index && State == 3 && (level == 1 || level == 9 || level == 17 || level == 25)) { this.Builds[num].Update(0); this.MotionTransform = this.SpriteGameObject[num].transform; this.Source = this.MotionTransform.position; this.Change = -32f; this.DeltaTime = 0f; this.TotalTime = 2f; this.WaitTime = 1f; this.DownUp = 1; this.MotionIndex = num; this.EasingIndex = MotionEffect.SetStack(this.BuildMotion); } else { if (State == 3 && buildingData.BuildingManorID != this.Builds[num].Index) { this.ShowBuildCompleteEffect(); } this.Builds[num].Update(State); this.GuideManorID = 0; this.GuideBuildID = 0; this.UpdateMapSprite(255, 9); } this.HideNoticeIcon(); break; } } } else { num--; this.Builds[num].Update(State); if (State == 1) { this.MotionTransform = this.SpriteGameObject[num].transform; this.Source.Set(1f, 1f, 1f); this.Change = 4.2f; this.DeltaTime = 0f; this.TotalTime = 0.25f; this.SpriteEffectIdx = 2; } } }
// Token: 0x06001171 RID: 4465 RVA: 0x001E8C48 File Offset: 0x001E6E48 public override void SetSprite(ushort ID, byte Class) { BuildsData buildingData = GUIManager.Instance.BuildingData; if (ID >= 100) { buildingData.GetBuildSprite(ID, this.spriteRender, this.LevelRender); this.HashID = this.spriteRender.name.GetHashCode(); switch ((byte)ID) { case 100: buildingData.ManorGride[2] = this.spriteRender.transform; break; case 101: buildingData.ManorGride[3] = this.spriteRender.transform; break; case 102: buildingData.ManorGride[4] = this.spriteRender.transform; break; case 104: buildingData.ManorGride[5] = this.spriteRender.transform; break; case 105: buildingData.ManorGride[8] = this.spriteRender.transform; break; case 106: buildingData.ManorGride[7] = this.spriteRender.transform; break; } this.Update(5); return; } buildingData.GetBuildSprite(ID, this.spriteRender, this.LevelRender); if (buildingData.AllBuildsData[(int)ID].BuildID == 12) { Vector3 localPosition = this.UpgradeRender.transform.localPosition; localPosition.z = -0.26f; this.UpgradeRender.transform.localPosition = localPosition; } if (buildingData.AllBuildsData[(int)ID].BuildID != 8) { this.markspriteRender.transform.localScale = Vector3.one * 0.5f; } else { Vector3 localPosition2 = this.LevelRender.transform.localPosition; localPosition2.y = 9.24f; this.LevelRender.transform.localPosition = localPosition2; } if (buildingData.AllBuildsData[(int)ID].BuildID == 11) { buildingData.ManorGride[6] = this.spriteRender.transform; buildingData.GuideParm = ID; } else if (ID == 5) { buildingData.ManorGride[1] = this.spriteRender.transform; } else if (ID == 1) { buildingData.ManorGride[0] = this.spriteRender.transform; } else if (buildingData.AllBuildsData[(int)ID].BuildID == 20) { buildingData.ManorGride[9] = this.spriteRender.transform; } this.HashID = this.spriteRender.name.GetHashCode(); if (this.spriteRender.sprite == null) { this.spriteRender.gameObject.SetActive(false); } else { this.spriteRender.gameObject.SetActive(true); } this.Update(5); this.Update(8); this.Update(9); }
// Token: 0x06001173 RID: 4467 RVA: 0x001E8F74 File Offset: 0x001E7174 public override void Update(byte meg) { DataManager instance = DataManager.Instance; BuildsData buildingData = GUIManager.Instance.BuildingData; switch (meg) { case 0: this.PromptRender.enabled = false; this.LevelRender.enabled = false; this.UpgradeRender.gameObject.SetActive(false); return; case 1: this.UpdateTime = 0f; MotionEffect.SetStack(this.OpenUIMotion); GUIManager.Instance.ShowUILock(EUILock.Normal); break; case 2: if (this.EffectBuilding == null) { Vector3 localPosition = this.spriteRender.transform.localPosition; if (buildingData.AllBuildsData[(int)this.Index].BuildID == 8) { localPosition.y = 20.5f; this.EffectBuilding = ParticleManager.Instance.Spawn(345, null, localPosition, 0.8f, true, false, true); } else { localPosition.y += 8.9f; this.EffectBuilding = ParticleManager.Instance.Spawn(293, null, localPosition, 0.8f, true, false, true); } Quaternion localRotation = this.EffectBuilding.transform.localRotation; localRotation.eulerAngles = new Vector3(0f, 180f, 0f); this.EffectBuilding.transform.localRotation = localRotation; } this.markspriteRender.enabled = false; buildingData.GetBuildSprite(this.Index, this.spriteRender, this.LevelRender); this.Update(5); this.markspriteRender.enabled = true; buildingData.GetBuildSprite(this.Index, this.spriteRender, this.LevelRender); break; case 3: case 4: if (this.EffectBuilding != null) { ParticleManager.Instance.DeSpawn(this.EffectBuilding); this.EffectBuilding = null; } this.markspriteRender.enabled = false; buildingData.GetBuildSprite(this.Index, this.spriteRender, this.LevelRender); if (buildingData.AllBuildsData[(int)this.Index].BuildID == 11) { buildingData.ManorGride[6] = this.spriteRender.transform; buildingData.GuideParm = this.Index; NewbieManager.CheckTroopMemory(false); } this.Update(5); this.Update(9); if (!this.UpgradeRender.gameObject.activeSelf) { this.UpgradeRender.gameObject.gameObject.SetActive(true); } break; case 5: { this.PromptRender.transform.localScale = Vector3.one; this.PromptRender.sprite = null; Vector3 localPosition2 = new Vector3(0f, this.spriteRender.renderer.bounds.size.y * 0.0703125f, 0f); if (buildingData.AllBuildsData.Length > (int)this.Index) { if (!instance.MySysSetting.bShowTrainingIdle) { ushort buildID = buildingData.AllBuildsData[(int)this.Index].BuildID; switch (buildID) { case 12: this.PromptRender.transform.localScale *= 0.8f; if (instance.TrapHospitalTotal > 0u) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_01"); } break; default: if (buildID == 7) { if (instance.HospitalTotal > 0u) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_01"); } } break; case 14: if (instance.TotalSoldier_Embassy > 0u) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_11"); } break; case 16: if (GUIManager.Instance.BuildingData.GetBuildData(8, 0).Level < 17) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_07"); } else if (instance.m_CryptData.money > 0 && instance.m_CryptData.startTime + (long)((ulong)GameConstants.CryptSecends[(int)instance.m_CryptData.kind]) - instance.ServerTime <= 0L) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_06"); } break; case 18: if (instance.PrisonerNum > 0) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("imprisoned_lords"); localPosition2.Set(-0.33f, 1.38f, 0f); } break; case 20: if (PetManager.Instance.CheckPetListBuildMark()) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_09"); } break; case 23: if (PetManager.Instance.m_AllPetTrainState == PetManager.EPetTrainDataState.CanReceive) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_09"); } break; } } else { switch (buildingData.AllBuildsData[(int)this.Index].BuildID) { case 6: if (!instance.queueBarData[10].bActive && buildingData.AllBuildsData[(int)this.Index].Level > 0) { uint num = instance.AttribVal.TotalOuterSoldier + (uint)instance.SoldierTotal; for (int i = 0; i < 16; i++) { num += instance.mSoldier_Hospital[i]; } if (num < 4200000000u) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_02"); } } break; case 7: if (instance.HospitalTotal > 0u) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_01"); } break; case 10: if (!instance.queueBarData[1].bActive && buildingData.AllBuildsData[(int)this.Index].Level > 0) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_04"); } break; case 12: this.PromptRender.transform.localScale *= 0.8f; if (instance.TrapHospitalTotal > 0u) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_01"); } else if (!instance.queueBarData[14].bActive && (instance.GetTechLevel(11) > 0 || instance.GetTechLevel(12) > 0 || instance.GetTechLevel(13) > 0) && instance.AttribVal.GetEffectBaseVal(GATTR_ENUM.EGA_TRAP_CAPACITY) > instance.TrapTotal) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_03"); } break; case 14: if (instance.TotalSoldier_Embassy > 0u) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_11"); } break; case 16: if (GUIManager.Instance.BuildingData.GetBuildData(8, 0).Level < 17) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_07"); } else if (instance.m_CryptData.money == 0) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_05"); } else if (instance.m_CryptData.startTime + (long)((ulong)GameConstants.CryptSecends[(int)instance.m_CryptData.kind]) - instance.ServerTime <= 0L) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_06"); } break; case 18: if (instance.PrisonerNum > 0) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("imprisoned_lords"); localPosition2.Set(-0.33f, 1.38f, 0f); } break; case 20: if (PetManager.Instance.CheckPetListBuildMark()) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_09"); } break; case 22: if (!instance.queueBarData[34].bActive && buildingData.AllBuildsData[(int)this.Index].Level > 0) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_10"); } break; case 23: if (PetManager.Instance.m_AllPetTrainState == PetManager.EPetTrainDataState.CanReceive) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_09"); } else if (PetManager.Instance.m_AllPetTrainState == PetManager.EPetTrainDataState.Empty && buildingData.AllBuildsData[(int)this.Index].Level > 0) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_10"); } break; } } if (instance.MySysSetting.bShowEquipUp && !instance.queueBarData[18].bActive && buildingData.AllBuildsData[(int)this.Index].BuildID == 15) { if (LordEquipData.Instance().isEquipEvoReady) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_09"); } } else if (buildingData.AllBuildsData[(int)this.Index].BuildID == 8 && buildingData.castleSkin.CheckShowCastleSkin() && buildingData.castleSkin.CheckShowExclamation(true)) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_09"); localPosition2.Set(0.64f, 2.51f, 0f); } } else { this.UpdateExtendBuildPrompt(this.Index, ref localPosition2); } if (this.PromptRender.sprite != null) { this.PromptRender.transform.localPosition = localPosition2; this.PromptRender.enabled = this.spriteRender.enabled; } else { this.PromptRender.enabled = false; } break; } case 8: if (instance.MySysSetting.bShowBuildUp && this.CheckUpdateRes <= 1 && buildingData.BuildingManorID == 0 && (int)this.Index < buildingData.AllBuildsData.Length && buildingData.AllBuildsData[(int)this.Index].BuildID > 0 && buildingData.AllBuildsData[(int)this.Index].Level < buildingData.BuildlevelupCheck[(int)buildingData.AllBuildsData[(int)this.Index].BuildID]) { this.UpgradeRender.enabled = true; } else { this.UpgradeRender.enabled = false; } break; case 9: if (!instance.MySysSetting.bShowBuildUp || buildingData.AllBuildsData[(int)this.Index].BuildID == 0 || buildingData.BuildingManorID > 0 || ((int)this.Index < buildingData.AllBuildsData.Length && buildingData.AllBuildsData[(int)this.Index].BuildID == 16 && buildingData.AllBuildsData[(int)this.Index].Level == 9)) { this.UpgradeRender.enabled = false; } else { if (buildingData.AllBuildsData[(int)this.Index].Level < 25) { this.CheckUpdateRes = buildingData.CheckLevelupRule(buildingData.AllBuildsData[(int)this.Index].BuildID, buildingData.AllBuildsData[(int)this.Index].Level + 1); } else { this.CheckUpdateRes = 2; } if (this.CheckUpdateRes == 0) { this.UpgradeRender.enabled = true; } else { this.UpgradeRender.enabled = false; } } break; case 12: this.SetSprite(this.Index, 0); break; } if ((int)this.Index < buildingData.AllBuildsData.Length && buildingData.AllBuildsData[(int)this.Index].BuildID > 0) { this.LevelRender.enabled = !this.markspriteRender.enabled; } }
// Token: 0x06002BF4 RID: 11252 RVA: 0x0048403C File Offset: 0x0048223C public override void UpdateUI(int arge1, int arge2) { if (arge1 == 65537) { base.UpdateUI(arge1, arge2); return; } if (arge1 == 65538) { this.Speedup.SendImmediate(); return; } Door door = GUIManager.Instance.FindMenu(EGUIWindow.Door) as Door; BuildsData buildingData = GUIManager.Instance.BuildingData; if (arge2 != 100) { if (this.QueueBar == (EQueueBarIndex)arge2) { if (buildingData.QueueBuildType == 2 && buildingData.AllBuildsData[(int)buildingData.OpenUiManorID].Level == 0) { door.CloseMenu(true); } else { door.CloseMenu(false); } } } else if (this.Speedup.Rally == 1) { DataManager instance = DataManager.Instance; byte queueBar = this.Speedup.QueueBar; if (arge1 == -1 || instance.WarTroop.Count <= (int)queueBar) { door.CloseMenu(false); } else if (instance.WarTroop.Count > (int)queueBar) { if (instance.WarTroop[(int)queueBar].MarchTime.BeginTime + (long)((ulong)instance.WarTroop[(int)queueBar].MarchTime.RequireTime) < instance.ServerTime || this.CheckNameID != instance.WarTroop[(int)queueBar].AllyNameID) { door.CloseMenu(false); } else { GUIManager.Instance.SetTimerBar(this.timebar, instance.WarTroop[(int)queueBar].MarchTime.BeginTime, instance.WarTroop[(int)queueBar].MarchTime.BeginTime + (long)((ulong)instance.WarTroop[(int)queueBar].MarchTime.RequireTime), 0L, eTimeBarType.SpeedupType, instance.mStringTable.GetStringByID(4914u), instance.mStringTable.GetStringByID(4914u)); } } } else if (this.Speedup.Rally == 2) { if (arge1 == -1) { door.CloseMenu(false); } else { DataManager instance2 = DataManager.Instance; bool flag = false; if (this.Speedup.Name == null || this.CheckNameID != this.Speedup.Name.GetHashCode(false)) { if (instance2.WarHall[0] == null) { return; } byte b = 0; while ((int)b < instance2.WarHall[0].Count) { if (instance2.WarHall[0][(int)b].AllyNameID == this.CheckNameID) { this.Speedup.QueueBar = (byte)(instance2.queueBarData.Length + (int)b); flag = true; break; } b += 1; } } else if (this.Speedup.Name != null && this.CheckNameID == this.Speedup.Name.GetHashCode(false)) { flag = true; } if (!flag || this.Speedup.StartTime + (long)((ulong)this.Speedup.TotalTime) < instance2.ServerTime) { door.CloseMenu(false); } } } this.UpdateHelpNum(); }