Removed all excess whitespace and standardized line endings.

This commit is contained in:
m3rein
2020-09-05 21:23:16 +02:00
parent caed5bd757
commit 240af4e5e7
219 changed files with 929 additions and 929 deletions

View File

@@ -145,34 +145,34 @@ class PokemonDuel
pbMessage(_INTL("You study each other's movements..."))
elsif action==0 && command==1
pbMoveRoute($game_player,[
PBMoveRoute::ChangeSpeed,4,
PBMoveRoute::ChangeSpeed,4,
PBMoveRoute::Forward])
pbWait(Graphics.frame_rate*4/10)
pbShake(9,9,8)
pbFlashScreens(false,true)
pbMoveRoute($game_player,[
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::Backward])
@hp[1] -= 1
pbMessage(_INTL("Your attack was not blocked!"))
elsif action==0 && command==2
pbMoveRoute($game_player,[
PBMoveRoute::ChangeSpeed,4,
PBMoveRoute::ChangeSpeed,4,
PBMoveRoute::ScriptAsync,"jumpForward"])
pbMoveRoute(event,[
PBMoveRoute::ChangeSpeed,4,
PBMoveRoute::ChangeSpeed,4,
PBMoveRoute::Backward])
pbWait(Graphics.frame_rate)
pbMoveRoute($game_player,[
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::Backward])
pbMoveRoute(event,[
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::Forward])
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::Forward])
pbMessage(_INTL("Your attack was evaded!"))
elsif (action==0 || action==1 || action==2) && command==3
pbMoveRoute($game_player,[
PBMoveRoute::ChangeSpeed,4,
PBMoveRoute::ChangeSpeed,4,
PBMoveRoute::ScriptAsync,"jumpForward"])
pbWait(Graphics.frame_rate*4/10)
pbMoveRoute(event,[
@@ -183,35 +183,35 @@ class PokemonDuel
pbShake(9,9,8)
pbFlashScreens(false,true)
pbMoveRoute($game_player,[
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::Backward])
pbMoveRoute(event,[
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::Forward])
@hp[1] -= 3
pbMessage(_INTL("You pierce through the opponent's defenses!"))
elsif action==1 && command==0
pbMoveRoute(event,[
PBMoveRoute::ChangeSpeed,4,
PBMoveRoute::ChangeSpeed,4,
PBMoveRoute::Forward])
pbWait(Graphics.frame_rate*4/10)
pbShake(9,9,8)
pbFlashScreens(true,false)
pbMoveRoute(event,[
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::Backward])
@hp[0] -= 1
pbMessage(_INTL("You fail to block the opponent's attack!"))
elsif action==1 && command==1
pbMoveRoute($game_player,[
PBMoveRoute::ChangeSpeed,4,
PBMoveRoute::ChangeSpeed,4,
PBMoveRoute::Forward])
pbWait(Graphics.frame_rate*6/10)
pbMoveRoute($game_player,[
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::Backward])
pbMoveRoute(event,[
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::Forward])
pbWait(Graphics.frame_rate*6/10)
pbMoveRoute(event,[PBMoveRoute::Backward])
@@ -224,7 +224,7 @@ class PokemonDuel
(action==2 && command==2)
pbMoveRoute($game_player,[
PBMoveRoute::Backward,
PBMoveRoute::ChangeSpeed,4,
PBMoveRoute::ChangeSpeed,4,
PBMoveRoute::ScriptAsync,"jumpForward"])
pbWait(Graphics.frame_rate*8/10)
pbMoveRoute(event,[
@@ -235,11 +235,11 @@ class PokemonDuel
pbFlashScreens(true,true)
pbMoveRoute($game_player,[
PBMoveRoute::Backward,
PBMoveRoute::ChangeSpeed,2])
PBMoveRoute::ChangeSpeed,2])
pbMoveRoute(event,[
PBMoveRoute::Backward,
PBMoveRoute::Backward,
PBMoveRoute::ChangeSpeed,2])
PBMoveRoute::ChangeSpeed,2])
pbWait(Graphics.frame_rate)
pbMoveRoute(event,[PBMoveRoute::Forward])
pbMoveRoute($game_player,[PBMoveRoute::Forward])
@@ -248,22 +248,22 @@ class PokemonDuel
pbMessage(_INTL("You hit each other!"))
elsif action==2 && command==0
pbMoveRoute(event,[
PBMoveRoute::ChangeSpeed,4,
PBMoveRoute::ChangeSpeed,4,
PBMoveRoute::Forward])
pbMoveRoute($game_player,[
PBMoveRoute::ChangeSpeed,4,
PBMoveRoute::ChangeSpeed,4,
PBMoveRoute::ScriptAsync,"jumpBackward"])
pbWait(Graphics.frame_rate)
pbMoveRoute($game_player,[
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::Forward])
pbMoveRoute(event,[
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::Backward])
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::Backward])
pbMessage(_INTL("You evade the opponent's attack!"))
elsif action==3 && (command==0 || command==1 || command==2)
pbMoveRoute(event,[
PBMoveRoute::ChangeSpeed,4,
PBMoveRoute::ChangeSpeed,4,
PBMoveRoute::ScriptAsync,"jumpForward"])
pbWait(Graphics.frame_rate*4/10)
pbMoveRoute($game_player,[
@@ -274,10 +274,10 @@ class PokemonDuel
pbShake(9,9,8)
pbFlashScreens(true,false)
pbMoveRoute($game_player,[
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::Forward])
pbMoveRoute(event,[
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::ChangeSpeed,2,
PBMoveRoute::Backward])
@hp[0] -= 3
pbMessage(_INTL("The opponent pierces through your defenses!"))
@@ -315,10 +315,10 @@ class PokemonDuel
def pbEndDuel
pbWait(Graphics.frame_rate*3/4)
pbMoveRoute($game_player,[
PBMoveRoute::DirectionFixOff,
PBMoveRoute::DirectionFixOff,
PBMoveRoute::ChangeSpeed,@oldmovespeed])
pbMoveRoute(@event,[
PBMoveRoute::DirectionFixOff,
PBMoveRoute::DirectionFixOff,
PBMoveRoute::ChangeSpeed,@oldeventspeed])
fadeTime = Graphics.frame_rate*4/10
alphaDiff = (255.0/fadeTime).ceil
@@ -331,7 +331,7 @@ class PokemonDuel
@sprites["opponentwindow"].opacity -= alphaDiff
Graphics.update
Input.update
pbUpdateSceneMap
pbUpdateSceneMap
end
pbDisposeSpriteHash(@sprites)
@viewport.dispose
@@ -404,4 +404,4 @@ rescue Exception
if $!.is_a?(SystemExit) || "#{$!.class}"=="Reset"
raise $!
end
end
end

View File

@@ -501,7 +501,7 @@ class TriadScene
end
end
end
return [boardX,boardY]
return [boardX,boardY]
end
def pbEndPlaceCard(position, cardIndex)
@@ -752,7 +752,7 @@ class TriadScreen
self.maxCards.times do
randCard = @triadCards[rand(@triadCards.length)]
pbSubtract(@triadCards,randCard[0])
cards.push(randCard[0])
cards.push(randCard[0])
end
@scene.pbShowPlayerCards(cards)
else
@@ -825,7 +825,7 @@ class TriadScreen
end
else
# Opponent's turn
@scene.pbDisplay(_INTL("{1} is making a move...",@opponentName))
@scene.pbDisplay(_INTL("{1} is making a move...",@opponentName))
scores = []
for cardIndex in 0...opponentCards.length
square = TriadSquare.new
@@ -1075,7 +1075,7 @@ def pbBuyTriads
commands.push([price,speciesname,_INTL("{1} - ${2}",speciesname,visprice),i])
end
if commands.length==0
pbMessage(_INTL("There are no cards that you can buy."))
pbMessage(_INTL("There are no cards that you can buy."))
return
end
commands.sort! { |a,b| a[1]<=>b[1] } # name
@@ -1318,4 +1318,4 @@ def pbGiveTriadCard(species,quantity=1)
return false if !$PokemonGlobal.triads.pbCanStore?(species,quantity)
$PokemonGlobal.triads.pbStoreItem(species,quantity)
return true
end
end

View File

@@ -401,4 +401,4 @@ def pbSlotMachine(difficulty=1)
screen.pbStartScreen(difficulty)
}
end
end
end

View File

@@ -476,7 +476,7 @@ class VoltorbFlip
end
end
def pbUpdateCoins
def pbUpdateCoins
# Update coins display
@sprites["totalCoins"].bitmap.clear
pbCreateCoins($PokemonGlobal.coins,44)
@@ -623,4 +623,4 @@ def pbVoltorbFlip
screen=VoltorbFlipScreen.new(scene)
screen.pbStartScreen
end
end
end

View File

@@ -51,4 +51,4 @@ def pbLottery(winnum,nameVar=2,positionVar=3,matchedVar=4)
$game_variables[nameVar]=winpoke
$game_variables[positionVar]=winpos
$game_variables[matchedVar]=winmatched
end
end

View File

@@ -623,4 +623,4 @@ def pbMiningGame
screen = MiningGame.new(scene)
screen.pbStartScreen
}
end
end

View File

@@ -579,4 +579,4 @@ def pbTilePuzzle(game,board,width=0,height=0)
ret = screen.pbStartScreen
}
return ret
end
end