Removes sep= headers, adds testing interface
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2021-09-07 19:06:13 +02:00
parent bb6a4a3e6d
commit 85a7874555
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
4 changed files with 15 additions and 4 deletions

View File

@ -1,5 +1,4 @@
sep=|
Natures|Increased|Decreased
Name|Increased|Decreased
Hardy||
Lonely|Attack|Defense
Brave|Attack|Speed

1 sep=| Name Increased Decreased
Natures|Increased|Decreased
2 Hardy|| Hardy
3 Lonely|Attack|Defense Lonely Attack Defense
4 Brave|Attack|Speed Brave Attack Speed

View File

@ -0,0 +1,13 @@
Party@ CreateSimpleParty(const array<constString>&in species, uint8 level);
Battle@ CreateSimpleBattle(uint seed, const constString&in species1, const constString&in species2, uint8 level);
Battle@ CreateSimpleBattle(uint seed, Party@ p1, Party@ p2);
// Note that this returns a ref handle, and therefore should be cast first.
ref@ CreateMoveScript(const constString&in name);
ExecutingMove@ CreateExecutingMove(const constString&in moveName, Pokemon@ user, Pokemon@ target);
MoveTurnChoice@ CreateMoveTurnChoice(const constString&in moveName, Pokemon@ user, uint8 targetSide, uint8 target);
bool Require(bool expression);
bool RequireEquals(int expected, int actual);
bool RequireEquals(const string &in expected, const string &in actual);

View File

@ -1,4 +1,3 @@
sep=|
Types|Normal|Fighting|Flying|Poison|Ground|Rock|Bug|Ghost|Steel|Fire|Water|Grass|Electric|Psychic|Ice|Dragon|Dark|Fairy
Normal|1|1|1|1|1|0.5|1|0|0.5|1|1|1|1|1|1|1|1|1
Fighting|2|1|0.5|0.5|1|2|0.5|0|2|1|1|1|1|0.5|2|1|2|0.5

1 sep=| Types Normal Fighting Flying Poison Ground Rock Bug Ghost Steel Fire Water Grass Electric Psychic Ice Dragon Dark Fairy
sep=|
1 Types|Normal|Fighting|Flying|Poison|Ground|Rock|Bug|Ghost|Steel|Fire|Water|Grass|Electric|Psychic|Ice|Dragon|Dark|Fairy Types Normal Fighting Flying Poison Ground Rock Bug Ghost Steel Fire Water Grass Electric Psychic Ice Dragon Dark Fairy
2 Normal|1|1|1|1|1|0.5|1|0|0.5|1|1|1|1|1|1|1|1|1 Normal 1 1 1 1 1 0.5 1 0 0.5 1 1 1 1 1 1 1 1 1
3 Fighting|2|1|0.5|0.5|1|2|0.5|0|2|1|1|1|1|0.5|2|1|2|0.5 Fighting 2 1 0.5 0.5 1 2 0.5 0 2 1 1 1 1 0.5 2 1 2 0.5

View File

@ -1,6 +1,6 @@
#!/bin/sh
TESTERVERSION=0.0.2.1
TESTERVERSION=0.0.3
# Get the release information from the api for the specified version
curl -X GET "https://git.p-epsilon.com/api/v1/repos/Deukhoofd/PokemonScriptTester/releases/tags/$TESTERVERSION" -H "accept: application/json" |