Re-added a way to erase (or change) a map's tiles

This commit is contained in:
Maruno17
2021-11-03 22:40:02 +00:00
parent c392f8c236
commit ae7721316f
3 changed files with 18 additions and 8 deletions

View File

@@ -136,8 +136,7 @@ Events.onStepTakenFieldMovement += proc { |_sender,e|
next if tile_id == nil
next if GameData::TerrainTag.try_get(map.terrain_tags[tile_id]).id != :SootGrass
$player.soot += 1 if event == $game_player && $bag.has?(:SOOTSACK)
# map.data[thistile[1], thistile[2], i] = 0
# $scene.createSingleSpriteset(map.map_id)
map.erase_tile(thistile[1], thistile[2], i)
break
end
}