void PlanCheck() { if (GameControl.control.Plans.Count > 0) { for (int i = 0; i < GameControl.control.Plans.Count; i++) { if (GameControl.control.Plans[i].Due.Day == GameControl.control.Time.Day) { GameControl.control.MyBankDetails[GameControl.control.SelectedBank].AccountBalance -= GameControl.control.Plans[i].Price; GameControl.control.EmailData.Add(new EmailSystem("Monthly Plan", GameControl.control.Plans[i].Company, GameControl.control.Time.FullDate, GameControl.control.Plans[i].Name + " " + GameControl.control.Plans[i].Price + "Has been redacted from your account.", 0, 1, 1, false, EmailSystem.EmailType.New)); noti.NewNotification("New Mail", GameControl.control.Plans[i].Company, "Monthly Plan"); GameControl.control.Plans[i].Due.Month++; GameControl.control.Plans[i].Due.TodaysDate = "" + GameControl.control.Plans[i].Due.Day.ToString("00") + "/" + GameControl.control.Plans[i].Due.Month.ToString("00") + "/" + GameControl.control.Plans[i].Due.Year.ToString("0000"); if (GameControl.control.Plans[i].Due.Month > 12) { GameControl.control.Plans[i].Due.Month = 1; } } } } }
void Update() { if (GameControl.control.Rep.Count > 0) { for (int i = 0; i < GameControl.control.Rep.Count; i++) { switch (GameControl.control.Rep[i].Name) { case "REVA": if (GameControl.control.StoredLogins.Count > 1) { if (GameControl.control.Rep[i].CurrentRep >= GameControl.control.Rep[i].RepLevelRequirement) { GameControl.control.Rep[i].RepLevel += 1; GameControl.control.Rep[i].RepLevelMod = 1 + GameControl.control.Rep[i].RepLevel / 100; GameControl.control.Rep[i].RepLevelRequirement = 100 * GameControl.control.Rep[i].RepLevel * GameControl.control.Rep[i].RepLevelMod; GameControl.control.EmailData.Add(new EmailSystem("Reva Promotion", "www.reva.com", GameControl.control.Time.FullDate, "Your reva grade has been increased Agent " + GameControl.control.StoredLogins[0].Username + " Your grade is now " + GameControl.control.Rep[i].RepLevel, 0, 0, 0, false, EmailSystem.EmailType.New)); noti.NewNotification("New Mail", "Reva Promotion", "Your reva grade has been increased Agent"); } } break; } } } }
void KernalPanic() { if (crashmsg == true) { noti.ForcedMusicSetting = true; noti.ForcedMusicOption = false; noti.NewNotification("Critical Error", "OS Kernal Panic", "Insuffcient CPU resource pool."); crashmsg = false; } SCM.StopCodeWord = "AUTO_SYSTEM_CRASH"; SCM.StopCodeNumber = "0xD34DD13D"; SCM.CodeDetail = "K3RN31-94N1C-C9U-2Y2-CR2"; SCM.ExtraDetail = "14M-7H3-D327R0Y3R-0F-7H12-02"; SCM.enabled = true; Desktops.SetActive(false); Software.SetActive(false); }
public void Accept() { GameControl.control.Contracts.Add(misgen.MissionList[Select]); GameControl.control.EmailData.Add(new EmailSystem(misgen.MissionList[Select].Name, misgen.MissionList[Select].Address, GameControl.control.Time.FullDate, misgen.MissionList[Select].EDesc, 0, 1, 1, false, EmailSystem.EmailType.Contract)); noti.NewNotification("New Contract", misgen.MissionList[Select].Name, "You got a new contract."); misgen.MissionList.RemoveAt(Select); // noti.ShowNoti = true; // noti.Notification = "YOU GOT MAIL!!!"; // noti.playsound = true; // noti.DisplayTime = 4; Select = -1; //GameControl.control.DateTime.Add(ProfileController.procon.Day + "/" + ProfileController.procon.Month + "/" + ProfileController.procon.Year + " " + ProfileController.procon.Hour.ToString("00") + ":" + ProfileController.procon.Min.ToString("00")); }