Mt. Silver - finished

This commit is contained in:
infinitefusion
2022-11-27 14:11:41 -05:00
parent 1482c4c1d0
commit 572796d7cc
68 changed files with 37132 additions and 29 deletions

View File

@@ -384,6 +384,19 @@ def pbTripleWildBattle(species1, level1, species2, level2, species3, level3,
return (decision!=2 && decision!=5)
end
def pb1v3WildBattle(species1, level1, species2, level2, species3, level3,
outcomeVar=1, canRun=true, canLose=false)
# Set some battle rules
setBattleRule("outcomeVar",outcomeVar) if outcomeVar!=1
setBattleRule("cannotRun") if !canRun
setBattleRule("canLose") if canLose
setBattleRule("1v3")
# Perform the battle
decision = pbWildBattleCore(species1, level1, species2, level2, species3, level3)
# Return false if the player lost or drew the battle, and true if any other result
return (decision!=2 && decision!=5)
end
#===============================================================================
# Start a trainer battle
#===============================================================================