Berry plant bug fix from previous commit

This commit is contained in:
Maruno17
2021-11-15 14:00:41 +00:00
parent f00553c1eb
commit 99b6d86962
2 changed files with 3 additions and 2 deletions

View File

@@ -442,9 +442,10 @@ class TilemapRenderer
else else
ret = true # Need a full refresh ret = true # Need a full refresh
end end
else
ret = true
end end
@current_map_id = $game_map.map_id @current_map_id = $game_map.map_id
ret = true
end end
# Check for tile movement # Check for tile movement
current_map_display_x = ($game_map.display_x.to_f / Game_Map::X_SUBPIXELS).round current_map_display_x = ($game_map.display_x.to_f / Game_Map::X_SUBPIXELS).round

View File

@@ -443,7 +443,7 @@ def pbPickBerry(berry, qty = 1)
return false return false
end end
$stats.berry_plants_picked += 1 $stats.berry_plants_picked += 1
if qty >= GameData::BerryPlant.get(@berry_id).maximum_yield if qty >= GameData::BerryPlant.get(berry).maximum_yield
$stats.max_yield_berry_plants += 1 $stats.max_yield_berry_plants += 1
end end
$bag.add(berry, qty) $bag.add(berry, qty)