mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Minor refactoring to kill various Rubocop warnings
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user