mirror of
https://gitlab.com/Deukhoofd/BattleSim.git
synced 2025-10-28 02:00:04 +00:00
Revamped Challenge Buttons completely, Added primal abilities, items and primals themselves
This commit is contained in:
@@ -12,7 +12,11 @@ eval(coffee.compile(require('fs').readFileSync(path, 'utf8'), bare: true))
|
||||
@performMegaEvolution(action.pokemon)
|
||||
|
||||
@Battle::performMegaEvolution = (pokemon) ->
|
||||
[ species, forme ] = pokemon.item.mega
|
||||
if pokemon.species == "Rayquaza"
|
||||
species = "Rayquaza"
|
||||
forme = "mega"
|
||||
else
|
||||
[ species, forme ] = pokemon.item.mega
|
||||
pokemon.changeForme(forme)
|
||||
|
||||
ability = @FormeData[species][forme]["abilities"][0]
|
||||
|
||||
@@ -169,6 +169,24 @@ makeAbility "Tough Claws", ->
|
||||
return 0x14CD if move.hasFlag("contact")
|
||||
return 0x1000
|
||||
|
||||
makeAbility "Delta Stream", ->
|
||||
this::switchIn = ->
|
||||
if !@battle.hasWeather(Weather.DELTASTREAM)
|
||||
@battle.setWeather(Weather.DELTASTREAM, -1)
|
||||
@pokemon.activateAbility()
|
||||
|
||||
makeAbility "Desolate Land", ->
|
||||
this::switchIn = ->
|
||||
if !@battle.hasWeather(Weather.HARSHSUN)
|
||||
@battle.setWeather(Weather.HARSHSUN, -1)
|
||||
@pokemon.activateAbility()
|
||||
|
||||
makeAbility "Primordial Sea", ->
|
||||
this::switchIn = ->
|
||||
if !@battle.hasWeather(Weather.HEAVYRAIN)
|
||||
@battle.setWeather(Weather.HEAVYRAIN, -1)
|
||||
@pokemon.activateAbility()
|
||||
|
||||
makeWeatherAbility("Noctem", Weather.MOON)
|
||||
|
||||
makeAbility 'Heliophobia', ->
|
||||
|
||||
@@ -26659,7 +26659,29 @@
|
||||
],
|
||||
"weight": 9500,
|
||||
"pokeBattleValue": 1001,
|
||||
"tier": [ "Uber" ]
|
||||
"tier": [ "Uber" ]
|
||||
},
|
||||
"primal": {
|
||||
"types": [
|
||||
"Ground",
|
||||
"Fire"
|
||||
],
|
||||
"stats": {
|
||||
"attack": 180,
|
||||
"defense": 160,
|
||||
"hp": 100,
|
||||
"specialAttack": 150,
|
||||
"specialDefense": 90,
|
||||
"speed": 90
|
||||
},
|
||||
"abilities": [
|
||||
"Desolate Land"
|
||||
],
|
||||
"isBattleOnly": true,
|
||||
"weight": 3920,
|
||||
"unreleased": true,
|
||||
"pokeBattleValue": 1001,
|
||||
"tier": [ "Uber" ]
|
||||
}
|
||||
},
|
||||
"Grovyle": {
|
||||
@@ -32542,9 +32564,30 @@
|
||||
"Water"
|
||||
],
|
||||
"weight": 3520,
|
||||
"unreleased": true,
|
||||
"unreleased": true,
|
||||
"pokeBattleValue": 1001,
|
||||
"tier": [ "Uber" ]
|
||||
"tier": [ "Uber" ]
|
||||
},
|
||||
"primal": {
|
||||
"types": [
|
||||
"Water"
|
||||
],
|
||||
"stats": {
|
||||
"attack": 150,
|
||||
"defense": 90,
|
||||
"hp": 100,
|
||||
"specialAttack": 180,
|
||||
"specialDefense": 160,
|
||||
"speed": 90
|
||||
},
|
||||
"abilities": [
|
||||
"Primordial Sea"
|
||||
],
|
||||
"isBattleOnly": true,
|
||||
"weight": 4300,
|
||||
"unreleased": true,
|
||||
"pokeBattleValue": 1001,
|
||||
"tier": [ "Uber" ]
|
||||
}
|
||||
},
|
||||
"Kyurem": {
|
||||
@@ -48716,7 +48759,8 @@
|
||||
"Dragonify": 0
|
||||
},
|
||||
"tutor": {
|
||||
"Draco Meteor": 0
|
||||
"Draco Meteor": 0,
|
||||
"Dragon Ascent": 0
|
||||
}
|
||||
},
|
||||
"stats": {
|
||||
|
||||
@@ -329,6 +329,17 @@
|
||||
"spriteId": 73,
|
||||
"type": "misc"
|
||||
},
|
||||
"Blue Orb": {
|
||||
"description": "A shiny blue orb that is said to have a legend tied to it. It's known to have a deep connection with the Hoenn region.",
|
||||
"flingPower": 80,
|
||||
"mega": [
|
||||
"Kyogre",
|
||||
"primal"
|
||||
],
|
||||
"spriteId": 407,
|
||||
"unreleased": true,
|
||||
"type": "megastone"
|
||||
},
|
||||
"Bluk Berry": {
|
||||
"description": "No competitive use.",
|
||||
"flingPower": 10,
|
||||
@@ -2515,6 +2526,17 @@
|
||||
"spriteId": 72,
|
||||
"type": "misc"
|
||||
},
|
||||
"Red Orb": {
|
||||
"description": "A shiny red orb that is said to have a legend tied to it. It's known to have a deep connection with the Hoenn region",
|
||||
"flingPower": 80,
|
||||
"mega": [
|
||||
"Groudon",
|
||||
"primal"
|
||||
],
|
||||
"spriteId": 407,
|
||||
"unreleased": true,
|
||||
"type": "megastone"
|
||||
},
|
||||
"Relic Band": {
|
||||
"description": "No competitive use. Can be sold for a high price.",
|
||||
"flingPower": 30,
|
||||
|
||||
@@ -2816,6 +2816,32 @@
|
||||
"target": "selected-pokemon",
|
||||
"type": "Dragon"
|
||||
},
|
||||
"Dragon Ascent": {
|
||||
"accuracy": 100,
|
||||
"ailmentChance": 0,
|
||||
"ailmentId": "none",
|
||||
"damage": "physical",
|
||||
"description": "After soaring upward, the user attacks its target by dropping out of the sky at high speeds, although it lowers its own Defense and Sp. Def in the process.",
|
||||
"flags": [
|
||||
"contact",
|
||||
"protect",
|
||||
"mirror"
|
||||
],
|
||||
"flinchChance": 0,
|
||||
"maxHits": 1,
|
||||
"minHits": 1,
|
||||
"power": 120,
|
||||
"pp": 5,
|
||||
"priority": 0,
|
||||
"recoil": 0,
|
||||
"target": "selected-pokemon",
|
||||
"type": "Flying",
|
||||
"primaryBoostStats": {
|
||||
"defense": -1,
|
||||
"specialDefense": -1
|
||||
},
|
||||
"primaryBoostTarget": "self"
|
||||
},
|
||||
"Dragon Claw": {
|
||||
"accuracy": 100,
|
||||
"ailmentChance": 0,
|
||||
|
||||
@@ -97,6 +97,8 @@ extendMove 'Venom Drench', ->
|
||||
|
||||
target.boost(attack: -1, specialAttack: -1, speed: -1)
|
||||
|
||||
#ORAS shit
|
||||
|
||||
#insurgence shit beneath this
|
||||
makeWeatherMove 'New Moon', Weather.MOON
|
||||
|
||||
|
||||
@@ -3,6 +3,11 @@ path = require('path').resolve(__dirname, '../bw/pokemon.coffee')
|
||||
eval(coffee.compile(require('fs').readFileSync(path, 'utf8'), bare: true))
|
||||
|
||||
@Pokemon::canMegaEvolve = ->
|
||||
if @species == "Rayquaza"
|
||||
hasDA = _.findWhere(@moves, {name: "Dragon Ascent"})
|
||||
console.log(hasDA)
|
||||
if typeof hasDA != "undefined"
|
||||
return true
|
||||
return false if !@hasItem()
|
||||
return false if @item.type != 'megastone'
|
||||
[ species, forme ] = @item.mega
|
||||
|
||||
Reference in New Issue
Block a user