public override void Enact() { System.Random rng = new System.Random(); int num; Character[] enemies = new Character[4]; enemies[0] = new Expirimentor(); for (int i = 1; i < 4; i++) { num = rng.Next(10); if (num == 0) { enemies[i] = new MathMajor(); } else if (num == 1) { enemies[i] = new EnglishMajor(); } else if (num == 2) { enemies[i] = new MechanicalEngineer(); } else if (num == 3) { enemies[i] = new ChemistryMajor(); } else if (num == 4) { enemies[i] = new FootballPlayer(); } else if (num == 5) { enemies[i] = new CJMajor(); } else if (num == 6) { enemies[i] = new PsychMajor(); } else if (num == 7) { enemies[i] = new CSMajor(); } else if (num == 8) { enemies[i] = new CulinaryMajor(); } else { enemies[i] = new BusinessMajor(); } } options1 = new LinkedList <TimedMethod>(); options1.AddLast(new TimedMethod(0, "Battle", new object[] { enemies })); }
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 Character[] GetChoices() { Character[] choices = new Character[2]; switch (Map.currentPosition) { case "tower": choices[0] = new CJMajor(); choices[1] = new PoliticalScientist(); break; case "dining": choices[0] = new CulinaryMajor(); choices[1] = new EnglishMajor(); break; case "research": choices[0] = new ChemistryMajor(); choices[1] = new MathMajor(); break; case "sports": choices[0] = new FootballPlayer(); choices[1] = new AerospaceEngineer(); break; case "art": choices[0] = new DanceMajor(); choices[1] = new MusicMajor(); break; case "health": choices[0] = new PreMed(); choices[1] = new PsychMajor(); break; case "lecture": choices[0] = new HistoryMajor(); choices[1] = new BusinessMajor(); break; } return(choices); }
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" }) }); }