public TimedMethod[] Switch() { if (GetGooped()) { status.gooped = false; return(new TimedMethod[] { new TimedMethod(60, "Log", new object[] { ToString() + " escaped the goop" }), new TimedMethod(0, "CharLogSprite", new object[] { "Cleaned", 0, "goop", false }), new TimedMethod(0, "Audio", new object[] { "Clean" }) }); } if (Party.enemyCount > 1) { Attacks.SetAudio("BluntHit", 10); int former = Party.enemySlot; for (int i = 0; i < 4; i++) { if (i != Party.enemySlot - 1 && Party.enemies[i] != null && Party.enemies[i].GetAlive()) { Party.enemySlot = i + 1; return(new TimedMethod[] { new TimedMethod(60, "Log", new object[] { ToString() + " quickly switched to " + Party.GetEnemy().ToString() + ", who attacked" }), new TimedMethod(0, "EnemySwitch", new object[] { Party.enemySlot, former }), new TimedMethod(60, "Attack", new object[] { false }) }); } } } Party.AddEnemy(new FootballPlayer()); return(new TimedMethod[] { new TimedMethod(0, "Audio", new object[] { "Whistle" }), new TimedMethod(60, "Log", new object[] { ToString() + " called a backup player" }) }); }
public TimedMethod[] Summon() { System.Random rng = new System.Random(); int seed; Character current; for (int i = 0; i < 1; i++) { seed = rng.Next(6); if (seed == 0) { current = new DanceMajor(); } else if (seed == 1) { current = new PizzaCultist(); } else if (seed == 2) { current = new HistoryMajor(); } else { current = new MusicMajor(); } current.SetRecruitable(false); Party.AddEnemy(current); } return(new TimedMethod[] { new TimedMethod(0, "Audio", new object[] { "Recruit" }), new TimedMethod(60, "Log", new object[] { ToString() + " led more performers to the scene" }) }); }
public void DebugBattle() { Party.AddEnemy(new Villain()); Party.area = "Overworld"; Time.Increment(); SceneManager.LoadScene("Battle"); return; }
public TimedMethod[] Summon() { System.Random rng = new System.Random(); int seed; Character current; for (int i = 0; i < 3; i++) { seed = rng.Next(10); if (seed == 0) { current = new CSMajor(); } else if (seed == 1) { current = new MusicMajor(); } else if (seed == 2) { current = new PoliticalScientist(); } else if (seed == 3) { current = new FootballPlayer(); } else if (seed == 4) { current = new BusinessMajor(); } else if (seed == 5) { current = new EnglishMajor(); } else if (seed == 6) { current = new ChemistryMajor(); } else if (seed == 7) { current = new CJMajor(); } else if (seed == 8) { current = new CulinaryMajor(); } else { current = new PsychMajor(); } current.SetRecruitable(false); Party.AddEnemy(current); } return(new TimedMethod[] { new TimedMethod(60, "Log", new object[] { ToString() + "Surrounded themself with minions" }) }); }
public void Battle(Character [] enemies) { foreach (Character c in enemies) { if (c != null) { Party.AddEnemy(c); } } Party.area = "Dungeon"; isEvent = false; SceneManager.LoadScene("Battle"); }
public TimedMethod[] Manager() { if (GetGooped()) { status.gooped = false; return(new TimedMethod[] { new TimedMethod(60, "Log", new object[] { ToString() + " escaped the goop" }), new TimedMethod(0, "CharLogSprite", new object[] { "Cleaned", Party.enemySlot - 1, "goop", false }), new TimedMethod(0, "Audio", new object[] { "Clean" }) }); } Party.AddEnemy(new CampaignManager()); Switch(); return(new TimedMethod[] { new TimedMethod(60, "Log", new object[] { "The Politician called upon the campaign manager" }), new TimedMethod(0, "EnemySwitch", new object[] { 1, 2 }) }); }
public TimedMethod[] Summon() { if (Party.enemyCount == 4) { return(Switch()); } System.Random rng = new System.Random(); int seed; Character current; for (int i = 0; i < 2; i++) { seed = rng.Next(6); if (seed == 0) { current = new Instructor(); } else if (seed == 1) { current = new Researcher(); } else if (seed == 2) { current = new Janitor(); } else if (seed == 3) { current = new Cop(); } else if (seed == 4) { current = new TeachingAssistant(); } else { current = new ShuttleDriver(); } current.SetRecruitable(false); Party.AddEnemy(current); } return(new TimedMethod[] { new TimedMethod(0, "Audio", new object[] { "Recruit" }), new TimedMethod(60, "Log", new object[] { ToString() + " called in underlings" }) }); }
public TimedMethod[] Advertise() { if (Party.enemyCount < 4) { System.Random rng = new System.Random(); int seed; Character current; seed = rng.Next(6); if (seed == 0) { current = new DanceMajor(); } else if (seed == 1) { current = new CSMajor(); } else if (seed == 2) { current = new FootballPlayer(); } else if (seed == 3) { current = new CJMajor(); } else if (seed == 4) { current = new ChemistryMajor(); } else { current = new AerospaceEngineer(); } Party.AddEnemy(current); return(new TimedMethod[] { new TimedMethod(60, "Log", new object[] { ToString() + " advertised" }), new TimedMethod(0, "Audio", new object[] { "Recruit" }), new TimedMethod(60, "Log", new object[] { current.ToString() + " showed up" }) }); } else { return(new TimedMethod[] { new TimedMethod(60, "Log", new object[] { ToString() + " advertised, but it failed" }) }); } }
public TimedMethod[] Summon() { System.Random rng = new System.Random(); int seed; Character current; for (int i = 0; i < 2; i++) { seed = rng.Next(6); if (seed == 0) { current = new Instructor(); } else if (seed == 1) { current = new MusicMajor(); } else if (seed == 2) { current = new MathMajor(); } else if (seed == 3) { current = new CulinaryMajor(); } else if (seed == 4) { current = new Researcher(); } else { current = new MechanicalEngineer(); } current.SetRecruitable(false); Party.AddEnemy(current); } return(new TimedMethod[] { new TimedMethod(0, "Audio", new object[] { "Recruit" }), new TimedMethod(60, "Log", new object[] { "The CEO attracted 2 customers" }) }); }
public void Battle() { int n = rng.Next(32); if (n == 0) { Party.AddEnemy(new FootballPlayer()); } else if (n == 1) { Party.AddEnemy(new CSMajor()); } else if (n == 2) { Party.AddEnemy(new ShuttleDriver()); } else if (n == 3) { Party.AddEnemy(new TeachingAssistant()); } else if (n == 4) { Party.AddEnemy(new MusicMajor()); } else if (n == 5) { Party.AddEnemy(new HistoryMajor()); } else if (n == 6) { Party.AddEnemy(new PizzaCultist()); } else if (n == 7) { Party.AddEnemy(new CulinaryMajor()); } else if (n == 8) { Party.AddEnemy(new AerospaceEngineer()); } else if (n == 9) { Party.AddEnemy(new MathMajor()); } else if (n == 10) { Party.AddEnemy(new Chef()); } else if (n == 11) { Party.AddEnemy(new Slime()); } else if (n == 12) { Party.AddEnemy(new LabRobot()); } else if (n == 13) { Party.AddEnemy(new Researcher()); } else if (n == 14) { Party.AddEnemy(new ChemistryMajor()); } else if (n == 15) { Party.AddEnemy(new MechanicalEngineer()); } else if (n == 16) { Party.AddEnemy(new DanceMajor()); } else if (n == 17) { Party.AddEnemy(new CJMajor()); } else if (n == 18) { Party.AddEnemy(new PreMed()); } else if (n == 19) { Party.AddEnemy(new EnglishMajor()); } else if (n == 20) { Party.AddEnemy(new BusinessMajor()); } else if (n == 21) { Party.AddEnemy(new PsychMajor()); } else if (n == 22) { Party.AddEnemy(new PoliticalScientist()); } else if (n == 23) { Party.AddEnemy(new Cop()); } else if (n == 24) { Party.AddEnemy(new SecurityHologram()); } else if (n == 25) { Party.AddEnemy(new Doctor()); } else if (n == 26) { Party.AddEnemy(new Representative()); } else if (n == 27) { Party.AddEnemy(new Criminal()); } else if (n == 28) { Party.AddEnemy(new Administrator()); } else if (n == 29) { Party.AddEnemy(new Coach()); } else if (n == 30) { Party.AddEnemy(new Conductor()); } else { Party.AddEnemy(new Instructor()); } Party.area = "Overworld"; Time.Increment(); SceneManager.LoadScene("Battle"); return; }
public void Battle() { Character[] enemies; if (Time.timeUnit < 10) { enemies = Easy(); } else if (Time.timeUnit < 20) { if (rng.Next(10) < 5) { enemies = Easy(); } else { enemies = Medium(); } } else if (Time.timeUnit < 30) { int seed = rng.Next(10); if (seed < 2) { enemies = Easy(); } else if (seed < 7) { enemies = Medium(); } else { enemies = Hard(); } } else if (Time.timeUnit < 40) { int seed = rng.Next(10); if (seed < 2) { enemies = Medium(); } else if (seed < 7) { enemies = Hard(); } else { enemies = Deadly(); } } else if (Time.timeUnit < 50) { if (rng.Next(10) < 5) { enemies = Hard(); } else { enemies = Deadly(); } } else { enemies = Deadly(); } foreach (Character c in enemies) { Party.AddEnemy(c); } Party.area = "Overworld"; Time.Increment(); SceneManager.LoadScene("Battle"); }