Now loads language files on startup if Settings::LANGUAGES has exactly 1 defined language, fixed instant text speed after a wait in a message, added battle rule "cannotSwitch"

This commit is contained in:
Maruno17
2023-07-20 22:05:50 +01:00
parent a5734eaf46
commit fc95baf92c
6 changed files with 21 additions and 12 deletions

View File

@@ -61,6 +61,7 @@ class Battle
attr_accessor :debug # Debug flag
attr_accessor :canRun # True if player can run from battle
attr_accessor :canLose # True if player won't black out if they lose
attr_accessor :canSwitch # True if player is allowed to switch Pokémon
attr_accessor :switchStyle # Switch/Set "battle style" option
attr_accessor :showAnims # "Battle Effects" option
attr_accessor :controlPlayer # Whether player's Pokémon are AI controlled
@@ -131,6 +132,7 @@ class Battle
@debug = false
@canRun = true
@canLose = false
@canSwitch = true
@switchStyle = true
@showAnims = true
@controlPlayer = false