mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Berry plant bug fix from previous commit
This commit is contained in:
@@ -442,9 +442,10 @@ class TilemapRenderer
|
||||
else
|
||||
ret = true # Need a full refresh
|
||||
end
|
||||
else
|
||||
ret = true
|
||||
end
|
||||
@current_map_id = $game_map.map_id
|
||||
ret = true
|
||||
end
|
||||
# Check for tile movement
|
||||
current_map_display_x = ($game_map.display_x.to_f / Game_Map::X_SUBPIXELS).round
|
||||
|
||||
@@ -443,7 +443,7 @@ def pbPickBerry(berry, qty = 1)
|
||||
return false
|
||||
end
|
||||
$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
|
||||
end
|
||||
$bag.add(berry, qty)
|
||||
|
||||
Reference in New Issue
Block a user