Change encounter defaults

This commit is contained in:
kuroppoi
2023-07-12 16:05:38 +02:00
parent eb1605dbe7
commit 1990519088

View File

@@ -176,12 +176,12 @@ function updateEncounterFormOptions() {
function configureEncounter(index) {
encounterTableIndex = Math.min(10, Math.min(index, profile.encounters.length));
let encounter = profile.encounters[encounterTableIndex];
ELEMENT_ENCOUNTER_SPECIES.value = encounter ? encounter.species : 1;
ELEMENT_ENCOUNTER_SPECIES.value = encounter ? encounter.species : 493;
updateEncounterFormOptions();
ELEMENT_ENCOUNTER_MOVE.value = encounter ? encounter.move : 0;
ELEMENT_ENCOUNTER_FORM.value = encounter ? encounter.form : 0;
ELEMENT_ENCOUNTER_GENDER.value = encounter ? encounter.gender : "GENDERLESS";
ELEMENT_ENCOUNTER_ANIMATION.value = encounter ? encounter.animation : "WALK_AROUND";
ELEMENT_ENCOUNTER_ANIMATION.value = encounter ? encounter.animation : "LOOK_AROUND";
ELEMENT_ENCOUNTER_CONFIG.style.display = "block";
}