Commit Graph

104 Commits

Author SHA1 Message Date
Deukhoofd 545e321018
Updates needed for breaking change in how abilities work. 2021-11-15 12:47:02 +01:00
Deukhoofd 5334ad14da
Fixes issue where GetAngelscriptOwner would return an invalid value. 2021-11-05 13:45:51 +01:00
Deukhoofd ad3b3bebfa
Updates to new CreatureLib, with removed precompiled header. 2021-10-30 14:29:57 +02:00
Deukhoofd 3732cab54b
Bunch of fixes for Owners of scripts. 2021-10-30 11:44:16 +02:00
Deukhoofd ede314ef39
A bunch of work on the concept of script owners. 2021-10-29 23:54:44 +02:00
Deukhoofd 1e10d25dbd
Fixes narray::Length not being a property in angelscript. 2021-09-25 18:33:12 +02:00
Deukhoofd 8005ad1232
Large cleanup of type registration, added new "NativeArray" (or narray in angelscript) type that simply holds a pointer to a native list, to prevent copies we don't need 2021-09-25 17:56:45 +02:00
Deukhoofd e5ea2bbc90
Adds caching for expensive type resolution. 2021-09-22 19:02:01 +02:00
Deukhoofd 2e8cf4379b
Implements new standard macro/function for registering getters in Angelscript, to reduce the amount of errors there. 2021-09-21 22:37:13 +02:00
Deukhoofd 3a5fa268dd
Fixes Pokemon::get_Nickname in angelscript. 2021-09-19 12:57:11 +02:00
Deukhoofd 75d6100689
Fixes memory leak in unit tests 2021-08-29 16:28:21 +02:00
Deukhoofd aee0f04d9c
Further fixes for rounding errors in damage calculations. 2021-08-28 12:16:01 +02:00
Deukhoofd 037ff590f0
Fixes for damage calculation: Adds missing + 2, and handles rounding correctly. 2021-08-28 12:04:18 +02:00
Deukhoofd 7fe7c8becf
Add support for turning off the random damage modifier. 2021-08-24 20:57:45 +02:00
Deukhoofd dfcdfd8343
Further fixes for setting pokemon held items from angelscript. 2021-08-24 20:43:01 +02:00
Deukhoofd 8919ae4b02
Rework metadata to have a standard handling. 2021-08-22 15:01:51 +02:00
Deukhoofd 3d3bff3772
Work on evolution helpers 2021-06-27 17:11:37 +02:00
Deukhoofd 1c66aa8696
Return optional pointer instead of raw pointers in Pokemon::GetMoves 2021-04-23 11:53:00 +02:00
Deukhoofd 939cf4e328
Update CreatureLib. 2021-04-18 12:56:46 +02:00
Deukhoofd 515446bf20
Fixes GetPokemonIndex on BattleSide, adds unit test for it. 2021-03-28 16:16:47 +02:00
Deukhoofd 78268c51c0
Style fixes. 2021-03-27 22:40:16 +01:00
Deukhoofd e5b2ff5c59
Fixes memory leaks in unit test. 2021-03-27 22:29:28 +01:00
Deukhoofd e361507ec9
Adds support for modifying volatile scripts after adding them. 2021-03-27 22:19:18 +01:00
Deukhoofd 20f90222d1
Fix memory issues. 2021-03-07 18:20:42 +01:00
Deukhoofd 27dd8a8202
Initial support for item use scripts in angelscript. 2021-03-07 17:09:30 +01:00
Deukhoofd f8427fa594
Many fixes for script handling. 2021-01-22 14:11:03 +01:00
Deukhoofd 31008c0107
Several fixes and improvements. 2020-12-28 15:11:06 +01:00
Deukhoofd bbb2691b91
Update to latest Arbutils. 2020-12-13 12:32:52 +01:00
Deukhoofd 53bd6e7a94
Update to new Arbutils memory model. 2020-12-12 14:25:27 +01:00
Deukhoofd 9a91d356e0
Switch to doctest over Catch for unit tests. 2020-09-29 18:04:06 +02:00
Deukhoofd 8f73a9a43a
Several fixes. 2020-08-30 13:53:15 +02:00
Deukhoofd cc92cf1491
Defensive programming. 2020-08-17 18:23:25 +02:00
Deukhoofd cd4893936e
Link to library we use for stacktraces. 2020-08-16 11:22:43 +02:00
Deukhoofd d9badefb07
Update to latest CreatureLib. 2020-08-15 15:21:02 +02:00
Deukhoofd 77eae12326
Fixes for new CreatureLib. 2020-08-12 18:09:24 +02:00
Deukhoofd ca087a7ed8
Add support for Egg Groups. 2020-08-08 18:41:27 +02:00
Deukhoofd 7f1bc252ba
Update to newer CreatureLib. 2020-07-04 15:50:30 +02:00
Deukhoofd 34fb528da4
Update CreatureLib. 2020-06-05 16:54:57 +02:00
Deukhoofd 2d3a2fc63b
Smart pointers for most library and battle classes. 2020-06-02 20:37:21 +02:00
Deukhoofd f42ce8865d
Update CreatureLib. 2020-05-27 17:26:25 +02:00
Deukhoofd 92135a88eb
Move experience gain from species to forme. 2020-05-22 13:43:02 +02:00
Deukhoofd d3b0fc1cec
Fixed memory leak in unit tests 2020-05-20 17:23:25 +02:00
Deukhoofd 6c7c460640
Support Pokemon style experience gain. 2020-05-20 16:05:52 +02:00
Deukhoofd 3015133076
Remove test file after test run. 2020-05-02 11:55:04 +02:00
Deukhoofd bd77b58743
Rework of ScriptResolver to binary handling. Now also serialises the type database to the stream, simplifying it's api. 2020-05-02 11:13:04 +02:00
Deukhoofd c4b866cb38
File formatting. 2020-04-28 14:48:56 +02:00
Deukhoofd 42ea76cf53
Fixed spelling error in AngelScriptResolver name. 2020-04-24 00:05:43 +02:00
Deukhoofd 0f440a8a63
Enforce PkmnLib MiscLibrary in Library constructor. 2020-04-22 16:10:13 +02:00
Deukhoofd b1442f25fb
Rework CreatePokemon to not return a pointer to self every time, but return by value instead. 2020-04-22 14:41:20 +02:00
Deukhoofd 0cce1fdda2
Rework for LearnMove method on CreatePokemon. 2020-04-22 14:02:53 +02:00