mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 13:44:59 +00:00
Overworld Outfits
This commit is contained in:
@@ -94,5 +94,18 @@ class TilemapRenderer
|
||||
refresh_tile_src_rect(tile, tile_id)
|
||||
end
|
||||
|
||||
|
||||
def refresh_tile_z(tile, map, y, layer, tile_id)
|
||||
if false#tile.shows_reflection
|
||||
tile.z = -2000
|
||||
elsif tile.bridge && $PokemonGlobal.bridge > 0
|
||||
tile.z = 0
|
||||
else
|
||||
priority = tile.priority
|
||||
tile.z = (priority == 0) ? 0 : (y * SOURCE_TILE_HEIGHT) + (priority * SOURCE_TILE_HEIGHT) + SOURCE_TILE_HEIGHT + 1
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user