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

Gotta git gud

This commit is contained in:
Deukhoofd
2016-02-20 00:54:42 +01:00
parent 19558607f3
commit 1114909caf
32 changed files with 401 additions and 121 deletions

View File

@@ -19,6 +19,9 @@ eval(coffee.compile(require('fs').readFileSync(path, 'utf8'), bare: true))
[ species, forme ] = pokemon.item.mega
pokemon.changeForme(forme)
pokemon.getTeam().megaEvolve() if forme is "mega"
pokemon.getTeam().primalEvolve() if forme is "primal"
ability = @FormeData[species][forme]["abilities"][0]
ability = Ability[ability.replace(/\s+/g, '')]
pokemon.copyAbility(ability, reveal: false)

View File

@@ -18843,7 +18843,7 @@
"isBattleOnly": true,
"weight": 65,
"pokeBattleValue": 190,
"tier": [ "OU" ]
"tier": [ "OU" ]
},
"mega-fairy": {
"types": [
@@ -21808,6 +21808,29 @@
"weight": 820,
"pokeBattleValue": 1001,
"tier": [ "Uber" ]
},
"armor": {
"types": [
"Ground",
"Dragon"
],
"stats": {
"attack": 100,
"defense": 103,
"hp": 80,
"specialAttack": 80,
"specialDefense": 103,
"speed": 100
},
"abilities": [
"Levitate"
],
"hiddenAbility": "Unnerve",
"isBattleOnly": true,
"isItemBased": true,
"weight": 820,
"pokeBattleValue": 190,
"tier": [ "OU" ]
}
},
"Foongus": {
@@ -26588,7 +26611,8 @@
"Mud Shot": 1,
"Rest": 30,
"Scary Face": 5,
"SolarBeam": 80
"SolarBeam": 80,
"Precipice Blades": 45
},
"machine": {
"Aerial Ace": 0,
@@ -32511,7 +32535,8 @@
"Scary Face": 5,
"Sheer Cold": 75,
"Water Pulse": 1,
"Water Spout": 50
"Water Spout": 50,
"Origin Pulse": 45
},
"machine": {
"Blizzard": 0,
@@ -33973,6 +33998,30 @@
"weight": 205,
"pokeBattleValue": 125,
"tier": [ "UU" ]
},
"armor": {
"types": [
"Bug",
"Grass"
],
"stats": {
"attack": 103,
"defense": 112,
"hp": 75,
"specialAttack": 70,
"specialDefense": 98,
"speed": 92
},
"abilities": [
"Swarm",
"Chlorophyll"
],
"hiddenAbility": "Overcoat",
"isBattleOnly": true,
"isItemBased": true,
"weight": 205,
"pokeBattleValue": 190,
"tier": [ "OU" ]
}
},
"Ledian": {
@@ -62593,7 +62642,30 @@
"isBattleOnly": true,
"weight": 2550,
"pokeBattleValue": 190,
"tier": [ "OU" ]
"tier": [ "OU" ]
},
"armor": {
"types": [
"Rock",
"Dark"
],
"stats": {
"attack": 134,
"defense": 143,
"hp": 100,
"specialAttack": 95,
"specialDefense": 130,
"speed": 61
},
"abilities": [
"Sand Stream"
],
"hiddenAbility": "Unnerve",
"isBattleOnly": true,
"isItemBased": true,
"weight": 2020,
"pokeBattleValue": 190,
"tier": [ "OU" ]
}
},
"Tyrantrum": {
@@ -67346,7 +67418,8 @@
],
"weight": 526,
"pokeBattleValue": 155,
"tier": [ "OU" ]
"tier": [ "OU" ],
"unreleased": true
}
},
"Zebstrika": {
@@ -67538,6 +67611,28 @@
"weight": 3450,
"pokeBattleValue": 1001,
"tier": [ "Uber" ]
},
"armor": {
"types": [
"Dragon",
"Electric"
],
"stats": {
"attack": 150,
"defense": 156,
"hp": 100,
"specialAttack": 120,
"specialDefense": 130,
"speed": 90
},
"abilities": [
"Teravolt"
],
"isBattleOnly": true,
"isItemBased": true,
"weight": 3450,
"pokeBattleValue": 190,
"tier": [ "Uber" ]
}
},
"Zigzagoon": {

View File

@@ -1,4 +1,44 @@
{
"Tyranitar Armor": {
"description": "Increases the Defense and Special Defense stats of Tyranitar by 25% when held.",
"flingPower": 80,
"itemForme": [
"Tyranitar",
"armor"
],
"spriteId": 404,
"type": "megastone"
},
"Flygon Armor": {
"description": "Increases the Defense and Special Defense stats of Flygon by 25% when held.",
"flingPower": 80,
"itemForme": [
"Flygon",
"armor"
],
"spriteId": 404,
"type": "megastone"
},
"Leavanny Armor": {
"description": "Increases the Defense and Special Defense stats of Leavanny by 25% when held.",
"flingPower": 80,
"itemForme": [
"Leavanny",
"armor"
],
"spriteId": 404,
"type": "megastone"
},
"Zekrom Armor": {
"description": "Increases the Defense and Special Defense stats of Zekrom by 25% when held.",
"flingPower": 80,
"itemForme": [
"Zekrom",
"armor"
],
"spriteId": 404,
"type": "megastone"
},
"Ability Capsule": {
"description": "Allows a Pokemon with one of its two standard Abilities to change to the other when used.",
"flingPower": 0,
@@ -23,7 +63,7 @@
"mega"
],
"spriteId": 407,
"unreleased": true,
"unreleased": true,
"type": "megastone"
},
"Absorb Bulb": {
@@ -56,7 +96,7 @@
"mega"
],
"spriteId": 397,
"unreleased": true,
"unreleased": true,
"type": "megastone"
},
"Aguav Berry": {
@@ -83,7 +123,7 @@
"mega"
],
"spriteId": 409,
"unreleased": true,
"unreleased": true,
"type": "megastone"
},
"Amaze Mulch": {
@@ -196,7 +236,7 @@
"mega"
],
"spriteId": 398,
"unreleased": true,
"unreleased": true,
"type": "megastone"
},
@@ -209,8 +249,9 @@
],
"spriteId": 404,
"type": "megastone",
"unreleased": true
}, "Belue Berry": {
"unreleased": true
},
"Belue Berry": {
"description": "No competitive use.",
"flingPower": 10,
"naturalGift": {
@@ -265,9 +306,10 @@
"mega"
],
"spriteId": 404,
"unreleased": true,
"unreleased": true,
"type": "megastone"
}, "Black Belt": {
},
"Black Belt": {
"description": "The holder's Fighting-type attacks have their power multiplied by 1.2.",
"flingPower": 30,
"spriteId": 224,
@@ -337,7 +379,7 @@
"primal"
],
"spriteId": 407,
"unreleased": true,
"unreleased": true,
"type": "megastone"
},
"Bluk Berry": {
@@ -414,7 +456,8 @@
"flingPower": 30,
"spriteId": 19,
"type": "medicine"
}, "Cacturnite": {
},
"Cacturnite": {
"description": "If the holder is a Cacturne, this item allows it to Mega Evolve into Mega Cacturne in battle.",
"flingPower": 80,
"mega": [
@@ -429,7 +472,8 @@
"flingPower": 30,
"spriteId": 49,
"type": "medicine"
}, "Cameruptite": {
},
"Cameruptite": {
"description": "If the holder is a Camerupt, this item allows it to Mega Evolve into Mega Camerupt in battle.",
"flingPower": 80,
"mega": [
@@ -472,7 +516,7 @@
"mega-x"
],
"spriteId": 390,
"unreleased": true,
"unreleased": true,
"type": "megastone"
},
"Charizardite Y": {
@@ -624,7 +668,8 @@
"flingPower": 100,
"spriteId": 356,
"type": "misc"
}, "Crawdite": {
},
"Crawdite": {
"description": "If the holder is a Crawdaunt, this item allows it to Mega Evolve into Mega Crawdaunt in battle.",
"flingPower": 80,
"mega": [
@@ -685,7 +730,8 @@
"flingPower": 90,
"spriteId": 209,
"type": "misc"
}, "Delta Bisharpite": {
},
"Delta Bisharpite": {
"description": "If the holder is a Delta Bisharp, this item allows it to Mega Evolve into Mega Delta Bisharp in battle.",
"flingPower": 80,
"mega": [
@@ -694,7 +740,8 @@
],
"spriteId": 404,
"type": "megastone"
}, "Delta Blastoisinite": {
},
"Delta Blastoisinite": {
"description": "If the holder is a Delta Blastoise, this item allows it to Mega Evolve into Mega Delta Blastoise in battle.",
"flingPower": 80,
"mega": [
@@ -703,7 +750,8 @@
],
"spriteId": 404,
"type": "megastone"
}, "Delta Charizardite": {
},
"Delta Charizardite": {
"description": "If the holder is a Delta Charizard, this item allows it to Mega Evolve into Mega Delta Charizard in battle.",
"flingPower": 80,
"mega": [
@@ -712,7 +760,8 @@
],
"spriteId": 404,
"type": "megastone"
}, "Delta Galladite": {
},
"Delta Galladite": {
"description": "If the holder is a Delta Gallade, this item allows it to Mega Evolve into Mega Delta Gallade in battle.",
"flingPower": 80,
"mega": [
@@ -721,7 +770,8 @@
],
"spriteId": 404,
"type": "megastone"
}, "Delta Gardevoirite": {
},
"Delta Gardevoirite": {
"description": "If the holder is a Delta Gardevoir, this item allows it to Mega Evolve into Mega Delta Gardevoir in battle.",
"flingPower": 80,
"mega": [
@@ -730,7 +780,8 @@
],
"spriteId": 404,
"type": "megastone"
}, "Delta Scizorite": {
},
"Delta Scizorite": {
"description": "If the holder is a Delta Scizor, this item allows it to Mega Evolve into Mega Delta scizor in battle.",
"flingPower": 80,
"mega": [
@@ -739,7 +790,8 @@
],
"spriteId": 404,
"type": "megastone"
}, "Delta Venusaurite": {
},
"Delta Venusaurite": {
"description": "If the holder is a Delta Venusaur, this item allows it to Mega Evolve into Mega Delta Venusaur in battle.",
"flingPower": 80,
"mega": [
@@ -798,9 +850,10 @@
"mega"
],
"spriteId": 404,
"unreleased": true,
"unreleased": true,
"type": "megastone"
}, "Douse Drive": {
},
"Douse Drive": {
"description": "The holder's Techno Blast is Water type.",
"flingPower": 70,
"spriteId": 113,
@@ -990,7 +1043,8 @@
],
"spriteId": 404,
"type": "megastone"
}, "Fighting Gem": {
},
"Fighting Gem": {
"description": "The holder's first successful Fighting-type attack has its power multiplied by 1.3. Single use.",
"flingPower": 0,
"spriteId": 337,
@@ -1047,7 +1101,8 @@
"flingPower": 30,
"spriteId": 64,
"type": "misc"
}, "Flygonite": {
},
"Flygonite": {
"description": "If the holder is a Flygon, this item allows it to Mega Evolve into Mega Flygon in battle.",
"flingPower": 80,
"mega": [
@@ -1113,7 +1168,7 @@
"mega"
],
"spriteId": 404,
"unreleased": true,
"unreleased": true,
"type": "megastone"
},
"Ganlon Berry": {
@@ -1134,7 +1189,7 @@
"mega"
],
"spriteId": 413,
"unreleased": true,
"unreleased": true,
"type": "megastone"
},
"Gardevoirite": {
@@ -1145,7 +1200,7 @@
"mega"
],
"spriteId": 387,
"unreleased": true,
"unreleased": true,
"type": "megastone"
},
"Gengarite": {
@@ -1179,7 +1234,8 @@
],
"spriteId": 404,
"type": "megastone"
}, "Glalitite": {
},
"Glalitite": {
"description": "If the holder is a Glalie, this item allows it to Mega Evolve into Mega Glalie in battle.",
"flingPower": 80,
"mega": [
@@ -1194,7 +1250,8 @@
"flingPower": 30,
"spriteId": 98,
"type": "misc"
}, "Gothitite": {
},
"Gothitite": {
"description": "If the holder is a Gothitelle, this item allows it to Mega Evolve into Mega Gothitelle in battle.",
"flingPower": 80,
"mega": [
@@ -1283,7 +1340,7 @@
"mega"
],
"spriteId": 406,
"unreleased": true,
"unreleased": true,
"type": "megastone"
},
"HP Up": {
@@ -1384,7 +1441,7 @@
"mega"
],
"spriteId": 396,
"unreleased": true,
"unreleased": true,
"type": "megastone"
},
"Hyper Potion": {
@@ -1483,7 +1540,7 @@
"mega"
],
"spriteId": 405,
"unreleased": true,
"unreleased": true,
"type": "megastone"
},
"Kasib Berry": {
@@ -1659,7 +1716,7 @@
"mega"
],
"spriteId": 404,
"unreleased": true,
"unreleased": true,
"type": "megastone"
},
"Love Ball": {
@@ -1676,7 +1733,7 @@
"mega"
],
"spriteId": 403,
"unreleased": true,
"unreleased": true,
"type": "megastone"
},
"Luck Incense": {
@@ -1752,11 +1809,12 @@
],
"spriteId": 404,
"type": "megastone"
}, "Magmarizer": {
},
"Magmarizer": {
"description": "No competitive use. Evolves Magmar into Magmortar when traded.",
"flingPower": 80,
"spriteId": 306,
"unreleased": true,
"unreleased": true,
"type": "misc"
},
"Magnet": {
@@ -1793,7 +1851,7 @@
"mega"
],
"spriteId": 412,
"unreleased": true,
"unreleased": true,
"type": "megastone"
},
"Maranga Berry": {
@@ -1876,9 +1934,10 @@
"mega"
],
"spriteId": 395,
"unreleased": true,
"unreleased": true,
"type": "megastone"
}, "Meganiumite": {
},
"Meganiumite": {
"description": "If the holder is a Meganium, this item allows it to Mega Evolve into Mega Meganium in battle.",
"flingPower": 80,
"mega": [
@@ -1886,7 +1945,7 @@
"mega"
],
"spriteId": 404,
"unreleased": true,
"unreleased": true,
"type": "megastone"
},
"Mental Herb": {
@@ -1905,7 +1964,8 @@
],
"spriteId": 404,
"type": "megastone"
}, "Metal Coat": {
},
"Metal Coat": {
"description": "The holder's Steel-type attacks have their power multiplied by 1.2. Evolves Onix into Steelix and Scyther into Scizor when traded.",
"flingPower": 30,
"spriteId": 216,
@@ -1952,7 +2012,8 @@
},
"spriteId": 192,
"type": "berries"
}, "Milotite": {
},
"Milotite": {
"description": "If the holder is a Milotic, this item allows it to Mega Evolve into Mega Milotic in battle.",
"flingPower": 80,
"mega": [
@@ -1962,7 +2023,8 @@
"unreleased": true,
"spriteId": 404,
"type": "megastone"
}, "Miltankite": {
},
"Miltankite": {
"description": "If the holder is a Miltank, this item allows it to Mega Evolve into Mega Miltank in battle.",
"flingPower": 80,
"mega": [
@@ -2256,7 +2318,7 @@
"mega"
],
"spriteId": 401,
"unreleased": true,
"unreleased": true,
"type": "megastone"
},
"Pixie Plate": {
@@ -2534,7 +2596,7 @@
"primal"
],
"spriteId": 407,
"unreleased": true,
"unreleased": true,
"type": "megastone"
},
"Relic Band": {
@@ -2613,7 +2675,8 @@
],
"spriteId": 404,
"type": "megastone"
}, "Revival Herb": {
},
"Revival Herb": {
"description": "No competitive use. The selected Pokemon is revived from fainting and has all of its HP restored, but has its Happiness lowered.",
"flingPower": 30,
"spriteId": 37,
@@ -2768,7 +2831,8 @@
],
"spriteId": 404,
"type": "megastone"
}, "Scizorite": {
},
"Scizorite": {
"description": "If the holder is a Scizor, this item allows it to Mega Evolve into Mega Scizor in battle.",
"flingPower": 80,
"mega": [
@@ -2776,7 +2840,7 @@
"mega"
],
"spriteId": 400,
"unreleased": true,
"unreleased": true,
"type": "megastone"
},
"Scope Lens": {
@@ -2812,7 +2876,7 @@
"mega"
],
"spriteId": 404,
"unreleased": true,
"unreleased": true,
"type": "megastone"
},
"Shed Shell": {
@@ -2826,7 +2890,8 @@
"flingPower": 30,
"spriteId": 236,
"type": "misc"
}, "Shiftrite": {
},
"Shiftrite": {
"description": "If the holder is a Shiftry, this item allows it to Mega Evolve into Mega Shiftry in battle.",
"flingPower": 80,
"mega": [
@@ -2914,7 +2979,8 @@
],
"spriteId": 404,
"type": "megastone"
}, "Smoke Ball": {
},
"Smoke Ball": {
"description": "No competitive use. The holder can always run from wild battles.",
"flingPower": 30,
"spriteId": 211,
@@ -2978,7 +3044,8 @@
"flingPower": 90,
"spriteId": 282,
"type": "misc"
}, "Spiritombite": {
},
"Spiritombite": {
"description": "If the holder is a Spiritomb, this item allows it to Mega Evolve into Mega Spiritomb in battle.",
"flingPower": 80,
"mega": [
@@ -3087,7 +3154,8 @@
],
"spriteId": 404,
"type": "megastone"
}, "Sun Stone": {
},
"Sun Stone": {
"description": "No competitive use. An evolutionary item to be used on certain Pokemon.",
"flingPower": 30,
"spriteId": 80,
@@ -3201,7 +3269,8 @@
"flingPower": 30,
"spriteId": 231,
"type": "misc"
}, "Typhlosionite": {
},
"Typhlosionite": {
"description": "If the holder is a Typhlosion, this item allows it to Mega Evolve into Mega Typhlosion in battle.",
"flingPower": 80,
"mega": [
@@ -3406,7 +3475,8 @@
"flingPower": 90,
"spriteId": 283,
"type": "misc"
}, "Zebstrikite": {
},
"Zebstrikite": {
"description": "If the holder is a Zebstrika, this item allows it to Mega Evolve into Mega Zebstrika in battle.",
"flingPower": 80,
"mega": [
@@ -3427,7 +3497,8 @@
"flingPower": 10,
"spriteId": 259,
"type": "misc"
}, "Zoronite": {
},
"Zoronite": {
"description": "If the holder is a Zoroark, this item allows it to Mega Evolve into Mega Zoroark in battle.",
"flingPower": 80,
"mega": [

View File

@@ -1,4 +1,42 @@
{
"Precipice Blades": {
"accuracy": 85,
"ailmentChance": 0,
"ailmentId": "none",
"damage": "physical",
"description": "The user attacks opposing Pok<6F>mon by manifesting the power of the land in fearsome blades of stone.",
"flags": [
"protect"
],
"flinchChance": 0,
"maxHits": 1,
"minHits": 1,
"power": 120,
"pp": 10,
"priority": 0,
"recoil": 0,
"target": "all-other-pokemon",
"type": "Ground"
},
"Origin Pulse": {
"accuracy": 85,
"ailmentChance": 0,
"ailmentId": "none",
"damage": "special",
"description": "The user attacks opposing Pok<6F>mon with countless beams of light that glow a deep and brilliant blue.",
"flags": [
"protect"
],
"flinchChance": 0,
"maxHits": 1,
"minHits": 1,
"power": 110,
"pp": 10,
"priority": 0,
"recoil": 0,
"target": "all-other-pokemon",
"type": "Water"
},
"Ancient Roar": {
"accuracy": 100,
"ailmentChance": 0,
@@ -2816,7 +2854,7 @@
"target": "selected-pokemon",
"type": "Dragon"
},
"Dragon Ascent": {
"Dragon Ascent": {
"accuracy": 100,
"ailmentChance": 0,
"ailmentId": "none",

View File

@@ -50,3 +50,5 @@ makeItem "Weakness Policy", ->
move.typeEffectiveness(@battle, user, @pokemon) > 1
@pokemon.boost(attack: 2, specialAttack: 2)
@pokemon.useItem()
makeWeatherItem 'Dark Rock', Weather.MOON

View File

@@ -12,7 +12,8 @@ eval(coffee.compile(require('fs').readFileSync(path, 'utf8'), bare: true))
return false if @item.type != 'megastone'
[ species, forme ] = @item.mega
return false if @species != species || @forme != 'default'
return false if @team?.filter((p) -> /^mega/.test(p.forme)).length > 0
return false if @team.hasMegaEvolved and forme is "mega"
return false if @team.hasPrimalEvolved and forme is "primal"
return true
oldBlockSwitch = @Pokemon::blockSwitch
@@ -39,3 +40,10 @@ oldShouldBlockExecution = @Pokemon::shouldBlockExecution
oldHasChangeableAbility = @Pokemon::hasChangeableAbility
@Pokemon::hasChangeableAbility = ->
!@hasAbility("Stance Change") && oldHasChangeableAbility.call(this)
oldgetMaxLevel = @Pokemon::getMaxLevel
@Pokemon::getMaxLevel = ->
oldgetMaxLevel.apply(this, arguments)
level = 120
console.log(level)
level