Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TheZoroark007 committed Jul 10, 2023
1 parent 5d7ef55 commit 91a5620
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions DataParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -307,15 +307,12 @@ private static async Task ParseTrainers()
AssetTypeValueField[] nameFields = nameData.children[8].children[0].children;
Dictionary<string, string> trainerNames = new();
gameData.trainerNames = trainerNames;
//Debug.WriteLine("Hello");
foreach (AssetTypeValueField label in nameFields)
if (label.children[6].children[0].childrenCount > 0)
trainerNames[label.children[2].GetValue().AsString()] = label.children[6].children[0].children[0].children[4].GetValue().AsString();

AssetTypeValueField[] trainerFields = monoBehaviour.children[5].children[0].children;
AssetTypeValueField[] trainerPokemonFields = monoBehaviour.children[6].children[0].children;
// Debug.WriteLine(monoBehaviour.children[2].children[0].value.ToString());
// Debug.WriteLine(trainerFields[6].children[0].value.value.asInt32);
for (int trainerIdx = 0; trainerIdx < Math.Min(trainerFields.Length, trainerPokemonFields.Length); trainerIdx++)
{
Trainer trainer = new();
Expand Down Expand Up @@ -3239,7 +3236,6 @@ private static void CommitBattleTowerPokemon()
pokemonFields[pokemonIdx].children[24].GetValue().Set(pokemon.spAtkEV);
pokemonFields[pokemonIdx].children[25].GetValue().Set(pokemon.spDefEV);
pokemonFields[pokemonIdx].children[26].GetValue().Set(pokemon.spdEV);
//Debug.WriteLine("Written Pokemon");
}

fileManager.WriteMonoBehaviour(PathEnum.DprMasterdatas, monoBehaviour);
Expand Down
2 changes: 0 additions & 2 deletions Forms/BattleTowerPokemonForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ public partial class BattleTowerPokemonForm : Form

public BattleTowerPokemonForm()
{
//this.tef = tef;
dexEntries = gameData.dexEntries.Select(p => p.GetName()).ToList();
natures = gameData.natures.Select(n => n.GetName()).ToList();
abilities = gameData.abilities.Select(a => a.GetName()).ToList();
Expand All @@ -57,7 +56,6 @@ public BattleTowerPokemonForm()
tp = gameData.battleTowerTrainerPokemons[0];
InitializeComponent();
pokemonName = gameData.dexEntries[2].GetName();
Debug.WriteLine(tp.itemID);
speciesComboBox.DataSource = dexEntries.ToArray();
comboBox3.DataSource = genders.ToArray();
comboBox4.DataSource = natures.ToArray();
Expand Down

0 comments on commit 91a5620

Please sign in to comment.