// Token: 0x06000388 RID: 904 RVA: 0x00014BA8 File Offset: 0x00012FA8 public void LoadMessage() { switch (this.MODE) { case ResultPanel.ResultMode.GoTravel: { this.InfoButton.SetActive(true); this.InfoButtonImage.sprite = this.LabelSprites[0]; this.InfoButtonText.GetComponent <Text>().text = SuperGameMaster.GetFrogName() + "は\n旅立っています"; int index = SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.GoTravel); EventTimerFormat eventTimerFormat = SuperGameMaster.evtMgr.get_ActEvt(index); SuperGameMaster.evtMgr.delete_ActEvt_forId(eventTimerFormat.id); SuperGameMaster.set_FlagAdd(Flag.Type.GOTRAVEL, 1); break; } case ResultPanel.ResultMode.Drift: { this.InfoButton.SetActive(true); this.InfoButtonImage.sprite = this.LabelSprites[0]; this.InfoButtonText.GetComponent <Text>().text = SuperGameMaster.GetFrogName() + "は\nどこかへ出かけています"; int index2 = SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.Drift); EventTimerFormat eventTimerFormat2 = SuperGameMaster.evtMgr.get_ActEvt(index2); SuperGameMaster.evtMgr.delete_ActEvt_forId(eventTimerFormat2.id); SuperGameMaster.set_FlagAdd(Flag.Type.GOTRAVEL, 1); break; } case ResultPanel.ResultMode.Friend: { string text = string.Empty; int index3 = SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.Friend); EventTimerFormat eventTimerFormat3 = SuperGameMaster.evtMgr.get_ActEvt(index3); CharacterDataFormat characterDataFormat = SuperGameMaster.sDataBase.get_CharaDB_forId(eventTimerFormat3.evtId); this.InfoButtonImage.sprite = this.LabelSprites[1]; text = text + characterDataFormat.name + "が\n遊びにきています"; List <int> list = new List <int>(); list.Add(eventTimerFormat3.evtValue[0]); list.Add(eventTimerFormat3.evtValue[1]); list.Add(eventTimerFormat3.evtValue[2]); list.Add(eventTimerFormat3.evtValue[3]); list.Add(eventTimerFormat3.evtValue[4]); list.Add(1); SuperGameMaster.evtMgr.set_ActEvt_forId(eventTimerFormat3.id, list); this.InfoButton.SetActive(true); this.InfoButtonText.GetComponent <Text>().text = text; if (UnityEngine.Random.Range(0, 100) < 100) { int num = SuperGameMaster.saveData.MailList.FindIndex((MailEventFormat mail) => mail.mailEvt.Equals(EvtId.Leaflet)); if (num == -1) { MailEventFormat mailEventFormat = new MailEventFormat(); mailEventFormat.NewMail(); mailEventFormat.title = characterDataFormat.name + "のチラシ"; mailEventFormat.senderCharaId = characterDataFormat.id; mailEventFormat.mailEvt = EvtId.Leaflet; mailEventFormat.mailId = SuperGameMaster.saveData.MailList_nextId; mailEventFormat.date = SuperGameMaster.saveData.lastDateTime; this.MailUI.CreateMailEvt(mailEventFormat); } } break; } case ResultPanel.ResultMode.Return: this.InfoButton.SetActive(true); this.InfoButtonImage.sprite = this.LabelSprites[0]; this.InfoButtonText.GetComponent <Text>().text = SuperGameMaster.GetFrogName() + "が\n帰ってきました"; break; } }
// Token: 0x06000476 RID: 1142 RVA: 0x0001FF8C File Offset: 0x0001E38C public void ActiveMath(TimerEvent.Type proc_evtType) { List <EventTimerFormat> list = new List <EventTimerFormat>(); foreach (EventTimerFormat eventTimerFormat in SuperGameMaster.saveData.evtList_active) { if (proc_evtType == TimerEvent.Type.NONE || proc_evtType == eventTimerFormat.evtType) { switch (eventTimerFormat.evtType) { case TimerEvent.Type.GoTravel: if (eventTimerFormat.timeSpanSec < 0) { SuperGameMaster.set_FlagAdd(Flag.Type.GOTRAVEL, 1); } SuperGameMaster.ResetSave_BagDeskList_virtual(); break; case TimerEvent.Type.BackHome: SuperGameMaster.ResetSave_BagDeskList_virtual(); break; case TimerEvent.Type.Picture: if (eventTimerFormat.timeSpanSec < 0) { SuperGameMaster.set_FlagAdd(Flag.Type.GOTRAVEL, 1); } SuperGameMaster.ResetSave_BagDeskList_virtual(); break; case TimerEvent.Type.Return: SuperGameMaster.ResetSave_BagDeskList_virtual(); break; case TimerEvent.Type.Friend: if (eventTimerFormat.timeSpanSec <= 0) { int num = eventTimerFormat.timeSpanSec; int num2 = 0; CharacterDataFormat characterDataFormat = SuperGameMaster.sDataBase.get_CharaDB_forId(eventTimerFormat.evtId); IL_2E9: while (num + num2 <= 0) { num += 21600; while (UnityEngine.Random.Range(0, 100) >= 10) { num += 1800; if (num > 1296000) { IL_2C1: num2 = UnityEngine.Random.Range(6, 9); num2 *= 1800; if (characterDataFormat.flagValue > SuperGameMaster.Count_CollectionFlag()) { num2 = 0; goto IL_2E9; } goto IL_2E9; } } goto IL_2C1; } list.Add(new EventTimerFormat { id = -1, timeSpanSec = num, activeTime = num2, addTime = new DateTime(1970, 1, 1), evtType = TimerEvent.Type.Friend, evtId = characterDataFormat.id, evtValue = new List <int>(), evtValue = { UnityEngine.Random.Range(0, characterDataFormat.rndPos.Length), 0, eventTimerFormat.evtValue[2], eventTimerFormat.evtValue[3], eventTimerFormat.evtValue[4], 0 }, trigger = false }); } break; case TimerEvent.Type.Gift: { int count = SuperGameMaster.saveData.MailList.Count; if (count >= 100) { SuperGameMaster.saveData.MailList.RemoveAt(0); Debug.Log("[EventTimerManager] 昔のメールを削除しました"); } MailEventFormat mailEventFormat = new MailEventFormat(); mailEventFormat.NewMail(); int evtId = eventTimerFormat.evtId; CharacterDataFormat characterDataFormat2 = SuperGameMaster.sDataBase.get_CharaDB_forId(evtId); Define.Gift gift = (Define.Gift)eventTimerFormat.evtValue[0]; if (gift != Define.Gift.Clover) { if (gift != Define.Gift.FourClover) { if (gift == Define.Gift.Ticket) { mailEventFormat.title = characterDataFormat2.name + "のおかえし"; mailEventFormat.ticket = eventTimerFormat.evtValue[1]; } } else { mailEventFormat.title = characterDataFormat2.name + "のおかえし"; mailEventFormat.itemId = 1000; mailEventFormat.itemStock = eventTimerFormat.evtValue[1]; } } else { mailEventFormat.title = characterDataFormat2.name + "のおかえし"; mailEventFormat.CloverPoint = eventTimerFormat.evtValue[1]; } mailEventFormat.senderCharaId = characterDataFormat2.id; mailEventFormat.mailEvt = EvtId.Gift; mailEventFormat.mailId = SuperGameMaster.saveData.MailList_nextId; mailEventFormat.date = SuperGameMaster.saveData.lastDateTime; SuperGameMaster.saveData.MailList.Add(mailEventFormat); SuperGameMaster.saveData.MailList_nextId++; Debug.Log(string.Concat(new object[] { "[EventTimerManager] メール追加(", SuperGameMaster.saveData.MailList.Count, ") ID:", mailEventFormat.mailId, " next:", SuperGameMaster.saveData.MailList_nextId })); eventTimerFormat.trigger = false; eventTimerFormat.timeSpanSec = -1; break; } } } } foreach (EventTimerFormat addEvt in list) { SuperGameMaster.evtMgr.TimerAdd(addEvt); } }