mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user