private static void populateRandomAdventureStructs() { AdventurerClass[] classArray_0 = new AdventurerClass[3]; AdventurerSpecies[] speciesArray_0 = new AdventurerSpecies[3]; for (int i = 0; i < 3; i++) { _generateRandomChump(i, ref classArray_0, ref speciesArray_0); } adventureR_0 = new AdventureSubstage(classArray_0, speciesArray_0, new bool[] { false, false, false }, true, BattleBGMType.GARBO_typing); AdventurerClass[] classArray_1 = new AdventurerClass[3]; AdventurerSpecies[] speciesArray_1 = new AdventurerSpecies[3]; _generateRandomHighTierOffense(0, ref classArray_1, ref speciesArray_1); _generateRandomHighTierSupport(1, ref classArray_1, ref speciesArray_1); int r = Random.Range(0, 2); if (r == 0) { _generateRandomHighTierOffense(2, ref classArray_1, ref speciesArray_1); } else { _generateRandomHighTierSupport(2, ref classArray_1, ref speciesArray_1); } adventureR_1 = new AdventureSubstage(classArray_1, speciesArray_1, new bool[] { false, false, true }, true, BattleBGMType.GARBO_dreamchaser); AdventurerClass[] classArray_2 = new AdventurerClass[3]; AdventurerSpecies[] speciesArray_2 = new AdventurerSpecies[3]; _generateRandomHighTierSupport(0, ref classArray_2, ref speciesArray_2); _generateRandomHighTierSupport(1, ref classArray_2, ref speciesArray_2); _generateRandomBoss(2, ref classArray_2, ref speciesArray_2); adventureR_2 = new AdventureSubstage(classArray_2, speciesArray_2, new bool[] { true, true, true }, true, BattleBGMType.GARBO_murder); randomAdventureSubstages = new AdventureSubstage[] { adventureR_0, adventureR_1, adventureR_2 }; }
private static void populateAdventure0Structs() { adventure0_0 = new AdventureSubstage(new AdventurerClass[] { AdventurerClass.Warrior }, new AdventurerSpecies[] { AdventurerSpecies.Human }, new bool[] { false }, false, BattleBGMType.GARBO_typing); adventure0_1 = new AdventureSubstage(new AdventurerClass[] { AdventurerClass.Warrior, AdventurerClass.Warrior }, new AdventurerSpecies[] { AdventurerSpecies.Human, AdventurerSpecies.Human }, new bool[] { false, false }, false, BattleBGMType.GARBO_dreamchaser); adventure0_2 = new AdventureSubstage(new AdventurerClass[] { AdventurerClass.Warrior, AdventurerClass.Warrior, AdventurerClass.Sage }, new AdventurerSpecies[] { AdventurerSpecies.Human, AdventurerSpecies.Human, AdventurerSpecies.Human }, new bool[] { false, false, true }, false, BattleBGMType.GARBO_murder); adventure0Substages = new AdventureSubstage[] { adventure0_0, adventure0_1, adventure0_2 }; }
private static void populateAdventure2Structs() { adventure2_0 = new AdventureSubstage(new AdventurerClass[] { AdventurerClass.Footman, AdventurerClass.Footman }, new AdventurerSpecies[] { AdventurerSpecies.Orc, AdventurerSpecies.Orc }, new bool[] { false, false }, false, BattleBGMType.GARBO_typing); adventure2_1 = new AdventureSubstage(new AdventurerClass[] { AdventurerClass.Footman, AdventurerClass.Bowman, AdventurerClass.Mystic }, new AdventurerSpecies[] { AdventurerSpecies.Orc, AdventurerSpecies.Human, AdventurerSpecies.Fae }, new bool[] { false, false, false }, false, BattleBGMType.GARBO_dreamchaser); adventure2_2 = new AdventureSubstage(new AdventurerClass[] { AdventurerClass.Footman, AdventurerClass.Wizard, AdventurerClass.Wizard }, new AdventurerSpecies[] { AdventurerSpecies.Orc, AdventurerSpecies.Human, AdventurerSpecies.Fae }, new bool[] { true, true, true }, false, BattleBGMType.GARBO_murder); adventure2Substages = new AdventureSubstage[] { adventure2_0, adventure2_1, adventure2_2 }; }
private static void populateTutorialAdventuresStructs() { adventureTuto0_0 = new AdventureSubstage(new AdventurerClass[] { AdventurerClass.Warrior }, new AdventurerSpecies[] { AdventurerSpecies.Human }, new bool[] { false }, false, BattleBGMType.GARBO_dreamchaser); adventureTuto0Substages = new AdventureSubstage[] { adventureTuto0_0 }; adventureTuto1_0 = new AdventureSubstage(new AdventurerClass[] { AdventurerClass.Warrior, AdventurerClass.Warrior }, new AdventurerSpecies[] { AdventurerSpecies.Human, AdventurerSpecies.Human }, new bool[] { false, false }, false, BattleBGMType.GARBO_dreamchaser); adventureTuto1Substages = new AdventureSubstage[] { adventureTuto1_0 }; }
private void PopulateEnemyParty() { Adventurer[] enemyAdventurers; AdventureSubstage substage = adventure[battleNo]; enemyAdventurers = new Adventurer[substage.enemiesClasses.Length]; for (int i = 0; i < enemyAdventurers.Length; i++) { enemyAdventurers[i] = new Adventurer(); int[] bonus; if (GameDataManager.Instance.dataStore.adventureLevel < AdventureSubstageLoader.randomAdventureBaseLevel) { bonus = new int[] { 0, 0, 0, 0 } } ; else { int a = GameDataManager.Instance.dataStore.adventureLevel - AdventureSubstageLoader.randomAdventureBaseLevel; bonus = new int[] { 0, a, a, a }; } enemyAdventurers[i].Reroll(substage.enemiesClasses[i], substage.enemiesSpecies[i], substage.eliteStatuses[i], bonus); } int i2 = 0; for (int i = 0; i < enemyAdventurers.Length && i2 < enemyParty.Length; i++) { if (enemyAdventurers[i] != null) { enemyParty[i2].GenerateBattleData(enemyAdventurers[i]); i2++; } } while (i2 < enemyParty.Length) { enemyParty[i2].SetBattlerInactive(); i2++; } }