From 85a78745556d3ab128065773c1fbdb48b7db5172 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Tue, 7 Sep 2021 19:06:13 +0200 Subject: [PATCH] Removes sep= headers, adds testing interface --- Natures.csv | 3 +-- Scripts/Interfaces/Testing.as | 13 +++++++++++++ Types.csv | 1 - fetch_tester.sh | 2 +- 4 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 Scripts/Interfaces/Testing.as diff --git a/Natures.csv b/Natures.csv index bf82c1a..f01dcf4 100644 --- a/Natures.csv +++ b/Natures.csv @@ -1,5 +1,4 @@ -sep=| -Natures|Increased|Decreased +Name|Increased|Decreased Hardy|| Lonely|Attack|Defense Brave|Attack|Speed diff --git a/Scripts/Interfaces/Testing.as b/Scripts/Interfaces/Testing.as new file mode 100644 index 0000000..261fd47 --- /dev/null +++ b/Scripts/Interfaces/Testing.as @@ -0,0 +1,13 @@ +Party@ CreateSimpleParty(const array&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); \ No newline at end of file diff --git a/Types.csv b/Types.csv index 6a4cbee..8f3799e 100644 --- a/Types.csv +++ b/Types.csv @@ -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 diff --git a/fetch_tester.sh b/fetch_tester.sh index 466d8b4..3ba008d 100755 --- a/fetch_tester.sh +++ b/fetch_tester.sh @@ -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" |