From 91a56208823e5128c032dc83ef688f6f63cee3e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CLukasBrauschHFU=E2=80=9D?= Date: Mon, 10 Jul 2023 21:42:29 +0200 Subject: [PATCH] More cleanup --- DataParser.cs | 4 ---- Forms/BattleTowerPokemonForm.cs | 2 -- 2 files changed, 6 deletions(-) diff --git a/DataParser.cs b/DataParser.cs index 96c2d81..54c4371 100644 --- a/DataParser.cs +++ b/DataParser.cs @@ -307,15 +307,12 @@ private static async Task ParseTrainers() AssetTypeValueField[] nameFields = nameData.children[8].children[0].children; Dictionary 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(); @@ -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); diff --git a/Forms/BattleTowerPokemonForm.cs b/Forms/BattleTowerPokemonForm.cs index 4836c06..98a2fb0 100644 --- a/Forms/BattleTowerPokemonForm.cs +++ b/Forms/BattleTowerPokemonForm.cs @@ -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(); @@ -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();