Playing ME is stopped if a battle is skipped, fixed bug in Encounters Editor, sprite renamer now recognises 4+ digit ID numbers

This commit is contained in:
Maruno17
2021-05-18 20:01:01 +01:00
parent 6d7bae913e
commit be61441755
5 changed files with 23 additions and 19 deletions

View File

@@ -256,6 +256,7 @@ def pbEncounterTypeEditor(enc_data, enc_type)
help_window = Window_UnformattedTextPokemon.newWithSize(_INTL("Edit encounter slots"),
Graphics.width / 2, 0, Graphics.width / 2, 96)
help_window.z = 99999
enc_type_name = ""
ret = 0
need_refresh = true
loop do
@@ -316,7 +317,7 @@ def pbEncounterTypeEditor(enc_data, enc_type)
need_refresh = true
end
when 1 # Copy
enc_data.types[enc_type].insert(ret, enc_data.types[enc_type][ret - 2].clone)
enc_data.types[enc_type].insert(ret - 1, enc_data.types[enc_type][ret - 2].clone)
ret += 1
need_refresh = true
when 2 # Delete