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

@@ -38,6 +38,8 @@ class Game_Temp
when "canrun" then rules["canRun"] = true
when "cannotrun" then rules["canRun"] = false
when "roamerflees" then rules["roamerFlees"] = true
when "canswitch" then rules["canSwitch"] = true
when "cannotswitch" then rules["canSwitch"] = false
when "noexp" then rules["expGain"] = false
when "nomoney" then rules["moneyGain"] = false
when "disablepokeballs" then rules["disablePokeBalls"] = true
@@ -211,6 +213,8 @@ module BattleCreationHelperMethods
battle.canLose = battleRules["canLose"] if !battleRules["canLose"].nil?
# Whether the player can choose to run from the battle (default: true)
battle.canRun = battleRules["canRun"] if !battleRules["canRun"].nil?
# Whether the player can manually choose to switch out Pokémon (default: true)
battle.canSwitch = battleRules["canSwitch"] if !battleRules["canSwitch"].nil?
# Whether wild Pokémon always try to run from battle (default: nil)
battle.rules["alwaysflee"] = battleRules["roamerFlees"]
# Whether Pokémon gain Exp/EVs from defeating/catching a Pokémon (default: true)