mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-02-01 02:51:03 +00:00
updates to version 6.1
This commit is contained in:
@@ -173,11 +173,20 @@ class PokeBattle_Battle
|
||||
def wildBattle?; return @opponent.nil?; end
|
||||
def trainerBattle?; return !@opponent.nil?; end
|
||||
|
||||
def get_default_battle_format()
|
||||
case $PokemonSystem.battle_type
|
||||
when 0 then return [1, 1]
|
||||
when 1 then return [2, 2]
|
||||
when 2 then return [3, 3]
|
||||
end
|
||||
return [1,1]
|
||||
end
|
||||
|
||||
# Sets the number of battler slots on each side of the field independently.
|
||||
# For "1v2" names, the first number is for the player's side and the second
|
||||
# number is for the opposing side.
|
||||
def setBattleMode(mode)
|
||||
default = $game_variables[VAR_DEFAULT_BATTLE_TYPE].is_a?(Array) ? $game_variables[VAR_DEFAULT_BATTLE_TYPE] : [1,1]
|
||||
default = get_default_battle_format()
|
||||
@sideSizes =
|
||||
case mode
|
||||
when "triple", "3v3" then [3, 3]
|
||||
|
||||
Reference in New Issue
Block a user