Fixed another crash when entering a map with no map metadata, fixed Sky Drop failing causing the target to remain in the air, decapitalised some Debug menu text

This commit is contained in:
Maruno17
2023-07-12 21:06:54 +01:00
parent 104bf2b598
commit 8287f32a5e
10 changed files with 212 additions and 213 deletions

View File

@@ -66,7 +66,7 @@ class Sprite_Reflection
@sprite.z = -50 # Still water is -100, map is 0 and above
@sprite.z += 1 if event == $game_player
@sprite.zoom_x = @parent_sprite.zoom_x
if Settings::ANIMATE_REFLECTIONS && !GameData::MapMetadata.get(event.map_id).still_reflections
if Settings::ANIMATE_REFLECTIONS && !GameData::MapMetadata.try_get(event.map_id)&.still_reflections
@sprite.zoom_x += 0.05 * @sprite.zoom_x * Math.sin(2 * Math::PI * System.uptime)
end
@sprite.zoom_y = @parent_sprite.zoom_y