Commit Graph

246 Commits

Author SHA1 Message Date
Deukhoofd 499f942104
Slight tweaks to writing byte code to file.
continuous-integration/drone/push Build is passing Details
2020-04-12 10:17:15 +02:00
Deukhoofd 229850257b
Attempt at fixing memory issue on Windows build.
continuous-integration/drone/push Build is failing Details
2020-04-11 15:03:44 +02:00
Deukhoofd 09c71487be
Fixed mismatched integer types.
continuous-integration/drone/push Build is failing Details
2020-04-11 14:48:43 +02:00
Deukhoofd bf36103c11
Support for saving compiled AngelScript to either file or RAM, so we can reuse it.
continuous-integration/drone/push Build is failing Details
2020-04-11 14:42:49 +02:00
Deukhoofd 0b045db811
Removed OnStatusMove hook.
continuous-integration/drone/push Build is passing Details
2020-04-10 23:21:43 +02:00
Deukhoofd 2ad441debc
Update to new CreatureLib version.
continuous-integration/drone/push Build is passing Details
2020-04-10 22:27:40 +02:00
Deukhoofd 10f7f38c2d
Implements float Effect Parameter.
continuous-integration/drone/push Build is failing Details
2020-04-10 21:18:18 +02:00
Deukhoofd d12267c695
Implements new Effect Parameters in AngelScript/
continuous-integration/drone/push Build is passing Details
2020-04-10 20:39:11 +02:00
Deukhoofd 0700f7cfbd
Fix for Pokemon.HasHeldItem in AngelScript, added tests.
continuous-integration/drone/push Build is passing Details
2020-04-10 16:03:15 +02:00
Deukhoofd d2573fe959
Fixed size_t that should be asUINT.
continuous-integration/drone/push Build is passing Details
2020-04-10 15:15:46 +02:00
Deukhoofd bbb01ae458
Fixed ints for vector counts. Should be size_t.
continuous-integration/drone/push Build is failing Details
2020-04-10 15:10:22 +02:00
Deukhoofd 149b0f08f6
Rework AngelScript effect names to be not based on script names, but on attributes instead.
continuous-integration/drone/push Build is failing Details
2020-04-10 14:57:20 +02:00
Deukhoofd aa8915b314
Angelscript support for ConstString.
continuous-integration/drone/push Build is passing Details
2020-04-07 12:04:23 +02:00
Deukhoofd 1046eceacf
Clean up AngelScript context on exception.
continuous-integration/drone/push Build is passing Details
2020-04-06 20:06:43 +02:00
Deukhoofd 48ef465c82
Update to the latest CreatureLib version. 2020-04-06 20:03:44 +02:00
Deukhoofd 29a82a5e75
Support for new version of CreatureLib.
continuous-integration/drone/push Build is failing Details
2020-02-28 19:51:50 +01:00
Deukhoofd 40a003429e
Updates CreatureLib, implements ConstStrings.
continuous-integration/drone/push Build is failing Details
2020-02-27 18:59:15 +01:00
Deukhoofd 98e17a1eb8
Move script name to type.
continuous-integration/drone/push Build is passing Details
2020-02-23 16:02:27 +01:00
Deukhoofd e27cc2270d
Update CreatureLib, added RemoveVolatile function to AngelScript. 2020-02-23 12:46:44 +01:00
Deukhoofd 6a3df344da
Fixed invalid AngelScript declaration.
continuous-integration/drone/push Build is passing Details
2020-02-22 16:14:20 +01:00
Deukhoofd ed287f93db
Update CreatureLib, added AddVolatile function to AngelScript.
continuous-integration/drone/push Build is failing Details
2020-02-22 16:10:22 +01:00
Deukhoofd 1f07ddc428
Fix build.
continuous-integration/drone/push Build is passing Details
2020-02-22 15:26:16 +01:00
Deukhoofd 904af99022
Update to newest version of CreatureLib, added ChoiceQueue in AngelScript.
continuous-integration/drone/push Build is failing Details
2020-02-22 15:22:13 +01:00
Deukhoofd b1f101d646
Update to newest version of CreatureLib.
continuous-integration/drone/push Build is passing Details
2020-02-20 13:32:13 +01:00
Deukhoofd 19cfcc9e32
Support for specific PkmnLib functions in Scripts, added ModifyCriticalStage function. 2020-02-20 13:28:31 +01:00
Deukhoofd 83a49eee6c
Add new damage library script hooks to AngelScript.
continuous-integration/drone/push Build is passing Details
2020-02-19 10:25:27 +01:00
Deukhoofd a6e1726dc5
Include extern directory in conan.
continuous-integration/drone/push Build is passing Details
2020-02-19 09:59:46 +01:00
Deukhoofd 6fc6dbd05f
Added ScriptBuilder that gives us access to conditional compilation and metadata attributes.
continuous-integration/drone/push Build is passing Details
2020-02-19 09:07:44 +01:00
Deukhoofd 93be2ee8a1
Add Held Item functions to AngelScript.
continuous-integration/drone/push Build is passing Details
2020-02-17 17:35:14 +01:00
Deukhoofd f507d76432
Make Pokemon battle class inherit publicly.
continuous-integration/drone/push Build is passing Details
2020-02-17 16:56:44 +01:00
Deukhoofd 6fff01a994
Add PokemonParty class.
continuous-integration/drone/push Build is passing Details
2020-02-17 16:05:03 +01:00
Deukhoofd f9f83f892d
Fixed ModifyEffectChance function having uint16 instead of float as chance.
continuous-integration/drone/push Build is passing Details
2020-02-17 10:55:42 +01:00
Deukhoofd 3446412c0d
Fix EffectChance using uint16 instead of float.
continuous-integration/drone/push Build is passing Details
2020-02-17 10:34:11 +01:00
Deukhoofd 40f3b24bed
Change battle.Random from address to handle..
continuous-integration/drone/push Build is passing Details
2020-02-16 17:57:51 +01:00
Deukhoofd 30c3c5f405
Upgrade CreatureLib, added basic Battle class, as we'll use it later on/
continuous-integration/drone/push Build is passing Details
2020-02-16 17:50:16 +01:00
Deukhoofd 62eaf24f31
Fix ChangeStatBoost using the wrong underlying function
continuous-integration/drone/push Build is passing Details
2020-02-16 17:00:52 +01:00
Deukhoofd 57c142a11a
Add Stat boost change script function in AngelScript.
continuous-integration/drone/push Build is passing Details
2020-02-16 16:55:46 +01:00
Deukhoofd 98c3bdea1a
Register many new types and properties in AngelScript.
continuous-integration/drone/push Build is passing Details
2020-02-16 16:43:37 +01:00
Deukhoofd 0147515ffb
Implement AngelScript support for effect chance changes.
continuous-integration/drone/push Build is passing Details
2020-02-16 15:21:58 +01:00
Deukhoofd 321afbebe4
Use namespaces to differentiate between different categories of scripts.
continuous-integration/drone/push Build is passing Details
2020-02-16 14:38:05 +01:00
Deukhoofd bb06026587
Allow creating script from direct string instead of invoking load function.
continuous-integration/drone/push Build is passing Details
2020-02-16 13:33:58 +01:00
Deukhoofd a31477d4cb
Fix HitData.Damage being float instead of uint on scripts.
continuous-integration/drone/push Build is passing Details
2020-02-16 12:37:13 +01:00
Deukhoofd 3a141e7f9d
Fix Script GetAttackDataForTarget function.
continuous-integration/drone/push Build is passing Details
2020-02-16 12:28:05 +01:00
Deukhoofd 85d402c2c1
Update CreatureLib.
continuous-integration/drone/push Build is passing Details
2020-02-16 12:19:14 +01:00
Deukhoofd 5bbb880700
Improve script exception error message.
continuous-integration/drone/push Build is passing Details
2020-02-16 11:44:50 +01:00
Deukhoofd 45662cb29b
Update to new CreatureLib version, updated libraries in accordance.
continuous-integration/drone/push Build is passing Details
2020-02-15 19:04:06 +01:00
Deukhoofd 4ee791c6cb
Force newest build to be Conan version.
continuous-integration/drone/push Build is passing Details
2020-02-15 17:35:22 +01:00
Deukhoofd 7aa29e4543
Update CreatureLib, handle getting formes cleaner.
continuous-integration/drone/push Build is passing Details
2020-02-13 18:00:23 +01:00
Deukhoofd b83cefce11
Register Heal Method in AngelScript.
continuous-integration/drone/push Build is passing Details
2020-02-13 15:15:07 +01:00
Deukhoofd 6032610de6
Add script category to script creation function in AngelScript.
continuous-integration/drone/push Build is passing Details
2020-02-13 13:59:07 +01:00
Deukhoofd eeedbdac03
Minor fixes.
continuous-integration/drone/push Build is passing Details
2020-02-13 11:13:27 +01:00
Deukhoofd 2ebe63a14e
Updates CreatureLib, adds Fling Power.
continuous-integration/drone/push Build is failing Details
2020-02-13 11:09:24 +01:00
Deukhoofd c91b1b0906
Fix issues with AngelScript not handling statistics enum well.
continuous-integration/drone/push Build is passing Details
2020-02-12 20:36:05 +01:00
Deukhoofd b8d7e5624c
Update to latest version of CreatureLib, apply new ENUM macro.
continuous-integration/drone/push Build is failing Details
2020-02-12 20:30:22 +01:00
Deukhoofd 9974adb5ad
Fix MoveData to use signed byte for priority constructor instead of unsigned. 2020-02-12 10:12:29 +01:00
Deukhoofd 4ee5a14b4c
Implement Species destructor of base.
continuous-integration/drone/push Build is passing Details
2020-02-09 11:02:29 +01:00
Deukhoofd 61e9c9ba1f
Update CreatureLib headers, move header files to PkmnLib subdirectory.
continuous-integration/drone/push Build is passing Details
2020-02-08 19:22:29 +01:00
Deukhoofd 905087f7b9
Support for deploying to Conan.
continuous-integration/drone/push Build is failing Details
2020-02-08 10:22:18 +01:00
Deukhoofd af2f62a278
When calling script hooks from another script, re-use existing script context.
continuous-integration/drone/push Build is passing Details
2020-02-08 09:39:36 +01:00
Deukhoofd 67d317e22b
Fixes for valgrind failure.
continuous-integration/drone/push Build is failing Details
2020-02-06 16:25:55 +01:00
Deukhoofd b425a7e8b9
Implements most script hooks 2020-02-05 17:06:15 +01:00
Deukhoofd bcc038b49d
Actual implementation of Angelscript hooks into battle library.
continuous-integration/drone/push Build is failing Details
2020-02-04 19:34:30 +01:00
Deukhoofd 82eee58455
Potential fix for Windows build.
continuous-integration/drone/push Build is failing Details
2020-02-02 15:34:38 +01:00
Deukhoofd 419e573bbe
More tests for Pokemon class in AngelScript.
continuous-integration/drone/push Build is failing Details
2020-02-02 13:57:41 +01:00
Deukhoofd aae96333b1
Reorganized files 2020-02-02 12:23:50 +01:00
Deukhoofd e04ab6497a
Revert "Reduces some overhead from creating AngelScript array for Pokemon.GetTypes()"
continuous-integration/drone/push Build is passing Details
This reverts commit cec9f090, as it doesn't account for multiple different script engines
2020-02-02 11:01:49 +01:00
Deukhoofd cec9f0907f
Reduces some overhead from creating AngelScript array for Pokemon.GetTypes()
continuous-integration/drone/push Build is passing Details
2020-02-01 17:13:30 +01:00
Deukhoofd f33d96d922
Many tweaks and fixes relating to AngelScript, implements shininess.
continuous-integration/drone/push Build is failing Details
2020-02-01 16:56:09 +01:00
Deukhoofd cade351bc2
Register many battle classes in AngelScript.
continuous-integration/drone/push Build is passing Details
2020-01-26 15:18:04 +01:00
Deukhoofd af9fa61245
Register Static Library types.
continuous-integration/drone/push Build is passing Details
2020-01-23 15:10:08 +01:00
Deukhoofd 47db8464a2
More Item tests
continuous-integration/drone/push Build is passing Details
2020-01-22 11:29:14 +01:00
Deukhoofd 22648e8617
Fixed different sized enums being a problem for AngelScript, minor fixes for Item class
continuous-integration/drone/push Build is passing Details
2020-01-22 10:33:10 +01:00
Deukhoofd 9372ba4b27
Adds tests for MoveData type in AngelScript.
continuous-integration/drone/push Build is failing Details
2020-01-18 14:35:08 +01:00
Deukhoofd f32db7a751
Tests for forme fields in AngelScript.
continuous-integration/drone/push Build is passing Details
2020-01-18 13:07:56 +01:00
Deukhoofd 175e26d8b4
Register Type Library for AngelScript.
continuous-integration/drone/push Build is passing Details
2020-01-13 20:16:23 +01:00
Deukhoofd c1d865d366
Register Species Library for AngelScript.
continuous-integration/drone/push Build is passing Details
2020-01-13 20:05:03 +01:00
Deukhoofd dbc8aa2675
Register Move Library in AngelScript. 2020-01-13 20:02:28 +01:00
Deukhoofd 1573720e97
Register Item Library in AngelScript. 2020-01-13 20:00:31 +01:00
Deukhoofd a88e4a89e7
Register GrowthRate Library in AngelScript. 2020-01-13 19:55:18 +01:00
Deukhoofd faf22c9562
Register GrowthRate in AngelScript. 2020-01-13 19:52:32 +01:00
Deukhoofd 797044aa8c
Register Move Types.
continuous-integration/drone/push Build is passing Details
2020-01-13 19:43:34 +01:00
Deukhoofd 574776dbe0
Register Item types for AngelScript.
continuous-integration/drone/push Build is passing Details
2020-01-13 19:21:41 +01:00
Deukhoofd 041bd998fa
Register more types to AngelScript interface.
continuous-integration/drone/push Build is passing Details
2020-01-12 19:30:44 +01:00
Deukhoofd 72c2e38ea8
Fixes for Windows ;_;
continuous-integration/drone/push Build is passing Details
2020-01-12 18:20:59 +01:00
Deukhoofd c716992f12
Layout work on an AngelScript implementation.
continuous-integration/drone/push Build is failing Details
2020-01-11 22:30:23 +01:00
Deukhoofd 497acc1311
Fixes as to make including AngelScript actually possible.
continuous-integration/drone/push Build is passing Details
2020-01-09 19:03:38 +01:00
Deukhoofd 2a39467899
Initial layout work for allowing multiple script providers, but defaulting to AngelScript.
continuous-integration/drone/push Build is failing Details
2020-01-09 17:03:34 +01:00
Deukhoofd 191b128125
Implements Pokemon stat calculation.
continuous-integration/drone/push Build is passing Details
2020-01-05 15:18:30 +01:00
Deukhoofd 02ab4b3272
Support natures for Pokemon.
continuous-integration/drone/push Build is passing Details
2020-01-02 20:26:01 +01:00
Deukhoofd 800147c339
Started working on getting Battling side done.
continuous-integration/drone/push Build is passing Details
2020-01-02 18:02:40 +01:00
Deukhoofd 5dc6695f9e
Implements system for saving Evolutions.
continuous-integration/drone/push Build is passing Details
2020-01-02 13:45:39 +01:00
Deukhoofd f79c4fba04
Removes another unused dependency, performance improvements for MoveData
continuous-integration/drone/push Build is failing Details
2019-12-31 12:35:48 +01:00
Deukhoofd 4fd8e8a757
Removed unused dependency from MoveData.hpp
continuous-integration/drone/push Build is failing Details
2019-12-31 12:32:34 +01:00
Deukhoofd e5cb857ea8
Tests and tweaks for the Nature Library. 2019-12-31 10:39:20 +01:00
Deukhoofd bb1791b3ae
Implements outlines for ItemLibrary, MoveLibrary and implements NatureLibrary. 2019-12-30 16:19:53 +01:00
Deukhoofd 9a45d34f9f
Initial commit. 2019-12-29 15:29:52 +01:00