Refactored berry plant code, added missing berry plant PBS data and charsets, fixed berry sparkles sometimes showing on the wrong map

This commit is contained in:
Maruno17
2021-10-03 20:19:28 +01:00
parent af23f1ecc4
commit c7858de42a
6 changed files with 457 additions and 492 deletions

View File

@@ -7,7 +7,8 @@ class Scene_Map
attr_reader :spritesetGlobal
attr_reader :map_renderer
def spriteset
def spriteset(map_id = -1)
return @spritesets[map_id] if map_id > 0 && @spritesets[map_id]
for i in @spritesets.values
return i if i.map==$game_map
end