mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-24 15:26:01 +00:00
Fixed previous commit always causing recompiling if shadow_pokemon.dat doesn't exist, also rubocopping
This commit is contained in:
@@ -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."))
|
||||
|
||||
Reference in New Issue
Block a user