Fixed previous commit always causing recompiling if shadow_pokemon.dat doesn't exist, also rubocopping

This commit is contained in:
Maruno17
2023-01-23 22:27:04 +00:00
parent f6213057d8
commit b0b6e675c3
103 changed files with 1099 additions and 1302 deletions

View File

@@ -1,10 +1,10 @@
################################################################################
#===============================================================================
# "Slot Machine" mini-game
# By Maruno
#-------------------------------------------------------------------------------
# Run with: pbSlotMachine(1)
# - The number is either 0 (easy), 1 (default) or 2 (hard).
################################################################################
#===============================================================================
class SlotMachineReel < BitmapSprite
attr_accessor :reel
attr_accessor :toppos
@@ -79,8 +79,9 @@ class SlotMachineReel < BitmapSprite
end
end
#===============================================================================
#
#===============================================================================
class SlotMachineScore < BitmapSprite
attr_reader :score
@@ -107,8 +108,9 @@ class SlotMachineScore < BitmapSprite
end
end
#===============================================================================
#
#===============================================================================
class SlotMachineScene
attr_accessor :gameRunning
attr_accessor :gameEnd
@@ -376,8 +378,9 @@ class SlotMachineScene
end
end
#===============================================================================
#
#===============================================================================
class SlotMachine
def initialize(scene)
@scene = scene
@@ -390,8 +393,9 @@ class SlotMachine
end
end
#===============================================================================
#
#===============================================================================
def pbSlotMachine(difficulty = 1)
if !$bag.has?(:COINCASE)
pbMessage(_INTL("It's a Slot Machine."))