PokemonWorkshop / PokemonStudio

Pokémon Studio is a monster taming game editor which helps you to bring your ideas to life, in just a few clicks.
https://pokemonworkshop.com/
Other
93 stars 5 forks source link

Fix the ItemHealDataEditor which could introduce ALL in the status list #333

Open Palbolsky opened 1 week ago

Palbolsky commented 1 week ago

Description

For the heal item, we can configure the heal settings. In the case of using statuses, if the care applies to all statuses, an incorrect value may be entered in a particular circumstance: opening and closing the editor will add ALL to the data if nothing is edited and "All statuses" was already selected before opening the editor.

Current Behavior:

ALL is set in the data (statusList) of the item.

Expected Behavior:

statusList should be contains : "POISONED", "PARALYZED", "BURN", "ASLEEP", "FROZEN", "TOXIC"

Steps To Reproduce:

  1. Go on the Lum Berry item
  2. Open the heal editor
  3. Close the heal editor
  4. Save
  5. Open the json lum_berry.json and see the issue
  6. (Optional) Try to open the project, an error occurs

Anything else:

https://discord.com/channels/143824995867557888/1253427738560434207