mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
More or less standardised separator comments in the code
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#===============================================================================
|
||||
# "Duel" mini-game
|
||||
# Based on the Duel minigame by Alael
|
||||
# "Duel" mini-game.
|
||||
# Based on the Duel minigame by Alael.
|
||||
#===============================================================================
|
||||
class DuelWindow < Window_AdvancedTextPokemon
|
||||
attr_reader :hp
|
||||
@@ -375,11 +375,13 @@ class PokemonDuel
|
||||
end
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Starts a duel.
|
||||
# trainer_id - ID or symbol of the opponent's trainer type.
|
||||
# trainer_name - Name of the opponent
|
||||
# event - Game_Event object for the character's event
|
||||
# speeches - Array of 12 speeches
|
||||
#===============================================================================
|
||||
def pbDuel(trainer_id, trainer_name, event, speeches)
|
||||
trainer_id = GameData::TrainerType.get(trainer_id).id
|
||||
duel = PokemonDuel.new
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
#===============================================================================
|
||||
# "Triple Triad" mini-game
|
||||
# By Unknown
|
||||
# "Triple Triad" mini-game.
|
||||
# By Unknown.
|
||||
#===============================================================================
|
||||
|
||||
#===============================================================================
|
||||
# Card class
|
||||
# Card class.
|
||||
#===============================================================================
|
||||
class TriadCard
|
||||
attr_reader :species, :form
|
||||
@@ -134,7 +135,7 @@ class TriadCard
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Duel screen visuals
|
||||
# Duel screen visuals.
|
||||
#===============================================================================
|
||||
class TriadSquare
|
||||
attr_accessor :owner, :card, :type
|
||||
@@ -159,7 +160,7 @@ class TriadSquare
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Scene class for handling appearance of the screen
|
||||
# Scene class for handling appearance of the screen.
|
||||
#===============================================================================
|
||||
class TriadScene
|
||||
def pbStartScene(battle)
|
||||
@@ -587,7 +588,7 @@ class TriadScene
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Duel screen logic
|
||||
# Duel screen logic.
|
||||
#===============================================================================
|
||||
class TriadScreen
|
||||
attr_accessor :openHand, :countUnplayedCards
|
||||
@@ -945,7 +946,7 @@ class TriadScreen
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Start duel
|
||||
# Start duel.
|
||||
#===============================================================================
|
||||
def pbCanTriadDuel?
|
||||
card_count = $PokemonGlobal.triads.total_cards
|
||||
@@ -963,7 +964,7 @@ def pbTriadDuel(name, minLevel, maxLevel, rules = nil, oppdeck = nil, prize = ni
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Card storage
|
||||
# Card storage.
|
||||
#===============================================================================
|
||||
class PokemonGlobalMetadata
|
||||
attr_writer :triads
|
||||
@@ -1043,7 +1044,7 @@ class TriadStorage
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Card shop screen
|
||||
# Card shop screen.
|
||||
#===============================================================================
|
||||
def pbBuyTriads
|
||||
commands = []
|
||||
@@ -1289,7 +1290,7 @@ def pbTriadList
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Give the player a particular card
|
||||
# Give the player a particular card.
|
||||
#===============================================================================
|
||||
def pbGiveTriadCard(species, quantity = 1)
|
||||
sp = GameData::Species.try_get(species)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#===============================================================================
|
||||
# "Slot Machine" mini-game
|
||||
# By Maruno
|
||||
# "Slot Machine" mini-game.
|
||||
# By Maruno.
|
||||
#-------------------------------------------------------------------------------
|
||||
# Run with: pbSlotMachine(1)
|
||||
# - The number is either 0 (easy), 1 (default) or 2 (hard).
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#===============================================================================
|
||||
# "Voltorb Flip" mini-game
|
||||
# By KitsuneKouta
|
||||
# "Voltorb Flip" mini-game.
|
||||
# By KitsuneKouta.
|
||||
#-------------------------------------------------------------------------------
|
||||
# Run with: pbVoltorbFlip
|
||||
#===============================================================================
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#===============================================================================
|
||||
# "Lottery" mini-game
|
||||
# By Maruno
|
||||
# "Lottery" mini-game.
|
||||
# By Maruno.
|
||||
#===============================================================================
|
||||
def pbSetLotteryNumber(variable = 1)
|
||||
t = pbGetTimeNow
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#===============================================================================
|
||||
# "Mining" mini-game
|
||||
# By Maruno
|
||||
# "Mining" mini-game.
|
||||
# By Maruno.
|
||||
#-------------------------------------------------------------------------------
|
||||
# Run with: pbMiningGame
|
||||
#===============================================================================
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#===============================================================================
|
||||
# "Tile Puzzle" mini-games
|
||||
# By Maruno
|
||||
# Graphics by the__end
|
||||
# "Tile Puzzle" mini-games.
|
||||
# By Maruno.
|
||||
# Graphics by the__end.
|
||||
#-------------------------------------------------------------------------------
|
||||
# Run with: pbTilePuzzle(game,board,width,height)
|
||||
# game = 1 (Ruins of Alph puzzle),
|
||||
|
||||
Reference in New Issue
Block a user