public void Win() { methodQueue.Clear(); Score.victories++; statusBars.transform.Find("Player Status").GetComponent <StatusBarP>().Check(); statusBars.transform.Find("Enemy Status").GetComponent <StatusBarE>().Check(); if (Party.fullRecruit != null) { if (Party.playerCount == 4) { recruitMember.SetActive(true); menu.SetActive(false); largeMenuHides.SetActive(false); methodQueue.Enqueue(new TimedMethod("DisableLeadReplace")); return; } else { Party.AddPlayer(Party.fullRecruit); Party.fullRecruit = null; } } //Debug.Log("None"); messageLog.SendMessage("SetMessage", ""); menu.SetActive(false); largeMenuHides.SetActive(true); winMenu.SetActive(true); //} }
public void Replace() { Party.members[active - 1] = null; Party.playerCount--; Party.AddPlayer(Party.fullRecruit); Party.latestRecruit = Party.fullRecruit; Party.fullRecruit = null; }
public void Hire(Character hireling) { Party.UseSP(10); if (Party.playerCount < 4) { inventory.RemoveH(hireling); Party.AddPlayer(hireling); UpdateUI(); messageLog.GetComponent <Text>().text = "New member added"; } else { Party.fullRecruit = hireling; replaceMember.SetActive(true); storeUI.SetActive(false); } }
public void RecruitSuccess() { Audio("Recruit"); if (Party.playerCount < 4) { Party.AddPlayer(enemy); methodQueue.Clear(); delay += 30; methodQueue.Enqueue(new TimedMethod(0, "Win")); } else { methodQueue.Clear(); Party.fullRecruit = enemy; recruitMember.SetActive(true); menu.SetActive(false); largeMenuHides.SetActive(false); methodQueue.Enqueue(new TimedMethod("DisableLeadReplace")); } }
public void Replace() { Party.members[active - 1] = null; Party.playerCount--; Party.AddPlayer(Party.fullRecruit); Party.latestRecruit = Party.fullRecruit; Party.fullRecruit = null; if (Battle.inBattle) { Battle.instance.Cancel(transform.name); Battle.instance.Win(); } else if (Dungeon.inDungeon || Dungeon.inOverworld) { Dungeon.instance.CloseParty(); Dungeon.instance.CloseRecruit(); Dungeon.instance.Resolve(); } }
public void Ally(Character[] recruits) { foreach (Character c in recruits) { if (Party.playerCount < 4) { Party.AddPlayer(c); } else { Party.AddPlayer(c); replaceMember.SetActive(true); eventSpace.SetActive(false); nextMenu.SetActive(false); //menu.SetActive(false); //largeMenuHides.SetActive(false); replaceMember.transform.Find("Member 1").gameObject.GetComponent <Button>().interactable = false; return; } } //Resolve(); }
public void Load(int seed) { Party.Clear(); Character c; if (seed == 0) { c = new CSMajor(); c.SetChampion(true); c.SetStrength(4); c.SetMaxHP(30); c.SetHealth(30); c.SetQuirk(new Ninja(c)); Party.AddPlayer(c); Party.SetItems(new Item[] { new Pizza(), new Smartphone(), new Textbook(), new Pizza(), new Wire(), null, null, null, null, null }); } else if (seed == 1) { c = new ChemistryMajor(); c.SetChampion(true); c.SetStrength(4); c.SetMaxHP(30); c.SetHealth(30); c.SetQuirk(new Ill(c)); Party.AddPlayer(c); Party.PostBattle(); Party.SetItems(new Item[] { new Flask(), new Flask(), new ToxicSolution(), new MysteryGoo(), new MysteryGoo(), null, null, null, null, null }); } else if (seed == 2) { c = new MusicMajor(); c.SetChampion(true); c.SetStrength(4); c.SetMaxHP(30); c.SetHealth(30); c.SetQuirk(new Bandwagon(c)); Party.AddPlayer(c); Party.SetItems(new Item[] { new Tuba(), new Smartphone(), new Donut(), new Wire(), new Heels(), null, null, null, null, null }); } else if (seed == 3) { c = new HistoryMajor(); c.SetChampion(true); c.SetStrength(5); c.SetMaxHP(35); c.SetHealth(35); c.SetQuirk(new Vaccinated(c)); Party.AddPlayer(c); Party.SetItems(new Item[] { new Sword(), new Sword(), new Textbook(), new Curry(), new Celery(), null, null, null, null, null }); } else if (seed == 4) { c = new CJMajor(); c.SetChampion(true); c.SetStrength(5); c.SetMaxHP(30); c.SetHealth(30); c.SetBaseAccuracy(15); c.SetQuirk(new Vengeful(c)); Party.AddPlayer(c); Party.SetItems(new Item[] { new Sword(), new Tazer(), new ProteinBar(), new Whistle(), new SlimeGoo(), null, null, null, null, null }); } else if (seed == 5) { c = new PreMed(); c.SetChampion(true); c.SetStrength(5); c.SetMaxHP(25); c.SetHealth(25); c.SetQuirk(new Recovery(c)); Party.AddPlayer(c); Party.SetItems(new Item[] { new Sanitizer(), new Antibiotics(), new Rice(), new MysterySolution(), new ToxicSolution(), null, null, null, null, null }); } else if (seed == 6) { c = new EnglishMajor(); c.SetChampion(true); c.SetStrength(4); c.SetMaxHP(30); c.SetHealth(30); c.SetQuirk(new SleepDeprived(c)); Party.AddPlayer(c); Party.SetItems(new Item[] { new Pencil(), new VotedBadge(), new Textbook(), new Pendulum(), new Celery(), null, null, null, null, null }); } else if (seed == 7) { c = new BusinessMajor(); c.SetChampion(true); c.SetStrength(4); c.SetMaxHP(35); c.SetHealth(35); c.SetQuirk(new Paranoid(c)); Party.AddPlayer(c); Party.SetItems(new Item[] { new Briefcase(), new Smartphone(), new PinkSlip(), new Pizza(), new Pendulum(), null, null, null, null, null }); } else if (seed == 8) { c = new PsychMajor(); c.SetChampion(true); c.SetStrength(4); c.SetMaxHP(35); c.SetHealth(35); c.SetQuirk(new Dodgy(c)); Party.AddPlayer(c); Party.SetItems(new Item[] { new Pendulum(), new Tuba(), new Textbook(), new Rice(), new Milk(), null, null, null, null, null }); } else { c = new MechanicalEngineer(); c.SetChampion(true); c.SetStrength(4); c.SetMaxHP(35); c.SetHealth(35); c.SetQuirk(new Overconfident(c)); Party.AddPlayer(c); Party.SetItems(new Item[] { new Smartphone(), new Calculator(), new Pizza(), new Oil(), new Shuttle(), null, null, null, null, null }); } ToName(); }