The Great Enspacening begins!

This commit is contained in:
Maruno17
2021-12-18 12:20:31 +00:00
parent 2480ab0f9e
commit f7b76ae62e
138 changed files with 567 additions and 567 deletions

View File

@@ -644,7 +644,7 @@ class TriadScreen
return ItemStorageHelper.remove(items, item, 1)
end
def flipBoard(x,y,attackerParam=nil,recurse=false)
def flipBoard(x,y,attackerParam = nil,recurse = false)
panels = [x-1,y,x+1,y,x,y-1,x,y+1]
panels[0] = (@wrapAround ? @width-1 : 0) if panels[0]<0 # left
panels[2] = (@wrapAround ? 0 : @width-1) if panels[2]>@width-1 # right
@@ -697,7 +697,7 @@ class TriadScreen
# If pbStartScreen includes parameters, it should
# pass the parameters to pbStartScene.
def pbStartScreen(opponentName,minLevel,maxLevel,rules=nil,oppdeck=nil,prize=nil)
def pbStartScreen(opponentName,minLevel,maxLevel,rules = nil,oppdeck = nil,prize = nil)
raise _INTL("Minimum level must be 0 through 9.") if minLevel<0 || minLevel>9
raise _INTL("Maximum level must be 0 through 9.") if maxLevel<0 || maxLevel>9
raise _INTL("Maximum level shouldn't be less than the minimum level.") if maxLevel<minLevel
@@ -967,7 +967,7 @@ end
#===============================================================================
# Start duel
#===============================================================================
def pbTriadDuel(name,minLevel,maxLevel,rules=nil,oppdeck=nil,prize=nil)
def pbTriadDuel(name,minLevel,maxLevel,rules = nil,oppdeck = nil,prize = nil)
ret = 0
pbFadeOutInWithMusic {
scene = TriadScene.new

View File

@@ -18,7 +18,7 @@ class SlotMachineReel < BitmapSprite
[0,0,1,1,1,2,2,2,3,3,4,4,5,6,7]] # 2 - Hard
SLIPPING = [0,0,0,0,0,0,1,1,1,2,2,3]
def initialize(x,y,difficulty=1)
def initialize(x,y,difficulty = 1)
@viewport=Viewport.new(x,y,64,144)
@viewport.z=99999
super(64,144,@viewport)
@@ -41,7 +41,7 @@ class SlotMachineReel < BitmapSprite
@spinning=true
end
def stopSpinning(noslipping=false)
def stopSpinning(noslipping = false)
@stopping=true
@slipping=SLIPPING[rand(SLIPPING.length)]
@slipping=0 if noslipping
@@ -84,7 +84,7 @@ end
class SlotMachineScore < BitmapSprite
attr_reader :score
def initialize(x,y,score=0)
def initialize(x,y,score = 0)
@viewport=Viewport.new(x,y,70,22)
@viewport.z=99999
super(70,22,@viewport)
@@ -392,7 +392,7 @@ end
def pbSlotMachine(difficulty=1)
def pbSlotMachine(difficulty = 1)
if !$bag.has?(:COINCASE)
pbMessage(_INTL("It's a Slot Machine."))
elsif $player.coins == 0

View File

@@ -2,7 +2,7 @@
# "Lottery" mini-game
# By Maruno
################################################################################
def pbSetLotteryNumber(variable=1)
def pbSetLotteryNumber(variable = 1)
t = pbGetTimeNow
hash = t.day + (t.month << 5) + (t.year << 9)
srand(hash) # seed RNG with fixed value depending on date
@@ -11,7 +11,7 @@ def pbSetLotteryNumber(variable=1)
pbSet(variable,sprintf("%05d",lottery))
end
def pbLottery(winnum,nameVar=2,positionVar=3,matchedVar=4)
def pbLottery(winnum,nameVar = 2,positionVar = 3,matchedVar = 4)
winnum=winnum.to_i
winpoke=nil
winpos=0

View File

@@ -81,7 +81,7 @@ class MiningGameCursor < BitmapSprite
ToolPositions = [[1,0],[1,1],[1,1],[0,0],[0,0],
[0,2],[0,2],[0,0],[0,0],[0,2],[0,2]] # Graphic, position
def initialize(position=0,mode=0) # mode: 0=pick, 1=hammer
def initialize(position = 0,mode = 0) # mode: 0=pick, 1=hammer
@viewport = Viewport.new(0,0,Graphics.width,Graphics.height)
@viewport.z = 99999
super(Graphics.width,Graphics.height,@viewport)

View File

@@ -306,7 +306,7 @@ class TilePuzzleScene
return true
end
def pbRotateTile(pos,anim=true)
def pbRotateTile(pos,anim = true)
if @heldtile>=0
if anim
@sprites["cursor"].visible=false
@@ -407,7 +407,7 @@ class TilePuzzleScene
return true
end
def pbShiftLine(dir,cursor,anim=true)
def pbShiftLine(dir,cursor,anim = true)
# Get tiles involved
tiles=[]
dist=0
@@ -584,7 +584,7 @@ end
def pbTilePuzzle(game,board,width=0,height=0)
def pbTilePuzzle(game,board,width = 0,height = 0)
ret = false
pbFadeOutIn {
scene = TilePuzzleScene.new(game,board,width,height)