PkmnLib.NET/PkmnLib.Tests/Integration/Tests/BasicSingleTurn.json

64 lines
1.3 KiB
JSON
Raw Normal View History

2024-08-23 09:15:53 +00:00
{
"name": "BasicSingleTurn",
"description": "An extremely basic test that checks if a single turn of a battle works correctly. This test has two Pokemon, a Charizard and a Venusaur, and the Charizard uses Ember on the Venusaur.",
"battleSetup": {
"seed": 10,
"canFlee": false,
"numberOfSides": 2,
"positionsPerSide": 1,
"parties": [
{
"indices": [[0, 0]],
"pokemon": [
{
"species": "charizard",
"level": 50,
"moves": ["ember"]
}
]
},
{
"indices": [[1, 0]],
"pokemon": [
{
"species": "venusaur",
"level": 50,
"moves": ["vine_whip"]
}
]
}
]
},
"actions": [
{
"$type": "setPokemon",
"place": [0, 0],
"fromParty": [0, 0]
},
{
"$type": "setPokemon",
"place": [1, 0],
"fromParty": [1, 0]
},
{
"$type": "assert",
"value": ".Sides[1].Pokemon[0].CurrentHealth",
"expected": 140
},
{
"$type": "setMoveChoice",
"place": [0, 0],
"move": "ember",
"target": [1, 0]
},
{
"$type": "setPassChoice",
"place": [1, 0]
},
{
"$type": "assert",
"value": ".Sides[1].Pokemon[0].CurrentHealth",
"expected": 78
}
]
}