Gotos/RPGReader

Drop unneeded data

Opened this issue · 0 comments

The RPG-Maker sometimes store information, which isn't really needed. A well known example are default-values. If you create a new map, it's size will be 20x15, though this isn't saved in the file. If you change the size and then change it back, the RPG-Maker will save that the map is 20x15, it will be stored in the file, though it isn't needed.
Because of how the RPGReader works, it already drops these default values, but there is more information, which can be dropped, e.g.:
In conditions, that don't check switches the switch-ID doesn't need to be stored (nor checked in the equals()-method)
In empty LuciferCellField almost anything (except for the empty-flag) doesn't need to be stored.