Minor refactoring to kill various Rubocop warnings

This commit is contained in:
Maruno17
2021-12-17 20:29:47 +00:00
parent b5ee1b211d
commit 5dc64f1709
46 changed files with 145 additions and 151 deletions

View File

@@ -202,7 +202,7 @@ class BerryPlantMoistureSprite
return if !@sprite || !@event
new_moisture = -1
berry_plant = @event.variable
if berry_plant&.is_a?(BerryPlantData) && berry_plant.planted?
if berry_plant.is_a?(BerryPlantData) && berry_plant.planted?
new_moisture = berry_plant.moisture_stage
end
if new_moisture != @moisture_stage

View File

@@ -135,7 +135,7 @@ module RandomDungeonGenerator
when TurnLeft
for y in 0...CELL_HEIGHT
for x in 0...CELL_WIDTH
dungeon[y + dstX , CELL_WIDTH - 1 - x + dstY] = tile_layout[y * CELL_WIDTH + x]
dungeon[y + dstX, CELL_WIDTH - 1 - x + dstY] = tile_layout[y * CELL_WIDTH + x]
end
end
when TurnRight