1
0
mirror of https://gitlab.com/Deukhoofd/BattleSim.git synced 2025-10-28 18:20:04 +00:00

Revamped Challenge Buttons completely, Added primal abilities, items and primals themselves

This commit is contained in:
Deukhoofd
2016-02-10 23:43:15 +01:00
parent 5fdcc4b285
commit 19558607f3
31 changed files with 902 additions and 273 deletions

View File

@@ -4,26 +4,10 @@ $ ->
$mainButtons.on 'click', '.teambuilder_button', (e) ->
PokeBattle.navigation.showTeambuilder()
challengeobjunranked =
eventName: "findBattleunranked"
populate: $mainButtons.find('.find_battle_select_team')
button: $mainButtons.find('.find_battle_non_ranked')
defaultClauses: [
Conditions.SLEEP_CLAUSE
Conditions.EVASION_CLAUSE
Conditions.SPECIES_CLAUSE
Conditions.OHKO_CLAUSE
Conditions.PRANKSTER_SWAGGER_CLAUSE
Conditions.UNRELEASED_BAN
Conditions.TIMED_BATTLE
]
blockedClauses: true
challengeobj =
createChallengeButton
eventName: "findBattle"
populate: $mainButtons.find('.find_battle_select_team')
button: $mainButtons.find('.find_battle')
defaultClauses: [
clauses: [
Conditions.SLEEP_CLAUSE
Conditions.EVASION_CLAUSE
Conditions.SPECIES_CLAUSE
@@ -33,43 +17,22 @@ $ ->
Conditions.RATED_BATTLE
Conditions.TIMED_BATTLE
]
blockedClauses: true
challengepaneobjunranked = new challengePaneObject(challengeobjunranked)
challengePaneArray.push(challengepaneobjunranked)
challengepaneobj = new challengePaneObject(challengeobj)
challengePaneArray.push(challengepaneobj)
createChallengePane
createChallengeButton
eventName: "findBattleunranked"
populate: $mainButtons.find('.find_battle_select_team')
button: $mainButtons.find('.find_battle_non_ranked')
defaultClauses: [
Conditions.SLEEP_CLAUSE
Conditions.EVASION_CLAUSE
Conditions.SPECIES_CLAUSE
Conditions.OHKO_CLAUSE
Conditions.PRANKSTER_SWAGGER_CLAUSE
Conditions.UNRELEASED_BAN
Conditions.TIMED_BATTLE
clauses: [
Conditions.SLEEP_CLAUSE
Conditions.EVASION_CLAUSE
Conditions.SPECIES_CLAUSE
Conditions.OHKO_CLAUSE
Conditions.PRANKSTER_SWAGGER_CLAUSE
Conditions.UNRELEASED_BAN
Conditions.TIMED_BATTLE
]
blockedClauses: true
createChallengePane
eventName: "findBattle"
populate: $mainButtons.find('.find_battle_select_team')
button: $mainButtons.find('.find_battle')
defaultClauses: [
Conditions.SLEEP_CLAUSE
Conditions.EVASION_CLAUSE
Conditions.SPECIES_CLAUSE
Conditions.OHKO_CLAUSE
Conditions.PRANKSTER_SWAGGER_CLAUSE
Conditions.UNRELEASED_BAN
Conditions.RATED_BATTLE
Conditions.TIMED_BATTLE
]
blockedClauses: true
createChallengePaneNew
populate: $mainButtons.find('.find_battle_select_team')
$mainButtons.find('.find_battle').on 'challenge', ->
$this = $(this)