mirror of
https://gitlab.com/Deukhoofd/BattleSim.git
synced 2025-10-27 18:00:03 +00:00
Made Primal Evolution objects limit a condition
This commit is contained in:
@@ -13,13 +13,14 @@ self = (if window? then window.PokeBattle.conditions ?= {} else this)
|
||||
PRANKSTER_SWAGGER_CLAUSE : 10
|
||||
PBV_500 : 11
|
||||
VISIBLE_TEAM : 12
|
||||
TIER_LC : 13
|
||||
TIER_PU : 14
|
||||
TIER_NU : 15
|
||||
TIER_RU : 16
|
||||
TIER_UU : 17
|
||||
TIER_OU : 18
|
||||
TIER_Uber : 19
|
||||
PRIMAL_LIMIT : 13
|
||||
TIER_LC : 14
|
||||
TIER_PU : 15
|
||||
TIER_NU : 16
|
||||
TIER_RU : 17
|
||||
TIER_UU : 18
|
||||
TIER_OU : 19
|
||||
TIER_Uber : 20
|
||||
|
||||
@SelectableConditions = [
|
||||
@Conditions.VISIBLE_TEAM
|
||||
@@ -44,13 +45,15 @@ self = (if window? then window.PokeBattle.conditions ?= {} else this)
|
||||
OHKO_CLAUSE : "One-Hit KO Clause"
|
||||
UNRELEASED_BAN : "Unreleased Ban"
|
||||
PRANKSTER_SWAGGER_CLAUSE : "Prankster + Swagger Clause"
|
||||
PRIMAL_LIMIT : "Primal Limit"
|
||||
|
||||
|
||||
self.PresetFormats =
|
||||
insur1000:
|
||||
name : 'insur1000'
|
||||
humanName : 'Insurgence 1000'
|
||||
generation : 'in'
|
||||
conditions : [ @Conditions.PBV_1000, @Conditions.TEAM_PREVIEW ]
|
||||
conditions : [ @Conditions.PBV_1000, @Conditions.TEAM_PREVIEW, @Conditions.PRIMAL_LIMIT]
|
||||
playable : true
|
||||
priority : 5
|
||||
tierBased : false
|
||||
@@ -58,7 +61,7 @@ self.PresetFormats =
|
||||
name : 'xy1000'
|
||||
humanName : '1,000 PBV XY'
|
||||
generation : 'xy'
|
||||
conditions : [ @Conditions.PBV_1000, @Conditions.TEAM_PREVIEW ]
|
||||
conditions : [ @Conditions.PBV_1000, @Conditions.TEAM_PREVIEW, @Conditions.PRIMAL_LIMIT]
|
||||
playable : true
|
||||
priority : 10
|
||||
tierBased : false
|
||||
@@ -66,7 +69,7 @@ self.PresetFormats =
|
||||
name : 'xy500'
|
||||
humanName : '500 PBV XY'
|
||||
generation : 'xy'
|
||||
conditions : [ @Conditions.PBV_500, @Conditions.TEAM_PREVIEW ]
|
||||
conditions : [ @Conditions.PBV_500, @Conditions.TEAM_PREVIEW, @Conditions.PRIMAL_LIMIT]
|
||||
playable : true
|
||||
priority : 10
|
||||
tierBased : false
|
||||
@@ -105,12 +108,12 @@ self.setFormats = ->
|
||||
tierbased = true
|
||||
if window?
|
||||
formatname = GenerationCondition[gen].conditionname + tier
|
||||
_conditions = [Conditions[key], Conditions.TEAM_PREVIEW]
|
||||
_conditions = [Conditions[key], Conditions.TEAM_PREVIEW, Conditions.PRIMAL_LIMIT]
|
||||
priority = tierData.priority
|
||||
humanname = "#{GenerationCondition[gen].humanName} #{tierData.humanName}"
|
||||
else
|
||||
formatname = @GenerationCondition[gen].conditionname + tier
|
||||
_conditions = [@Conditions[key], @Conditions.TEAM_PREVIEW]
|
||||
_conditions = [@Conditions[key], @Conditions.TEAM_PREVIEW, @Conditions.PRIMAL_LIMIT]
|
||||
priority = tierData.priority
|
||||
humanname = "#{@GenerationCondition[gen].humanName} #{tierData.humanName}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user