Deukhoofd 377c1a1c68
All checks were successful
Build / Build (push) Successful in 48s
Implements critical capture, tweaks for integration tests.
2025-05-18 17:07:46 +02:00

99 lines
1.7 KiB
JSON

{
"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": 84
}
]
}