Commit Graph

723 Commits

Author SHA1 Message Date
Deukhoofd 734d056449
Performance improvement for collecting scripts, by reserving size in ScriptSource.
continuous-integration/drone/push Build is passing Details
2020-04-25 11:33:25 +02:00
Deukhoofd 3b1c0e84e1
Fixed random value getter from BaseLibrary being broken.
continuous-integration/drone/push Build is passing Details
2020-04-25 11:08:04 +02:00
Deukhoofd 1eb751538d
Updated to latest Arbutils.
continuous-integration/drone/push Build is passing Details
2020-04-25 10:41:15 +02:00
Deukhoofd df37558ec0
Fix for random value from library not working.
continuous-integration/drone/push Build is failing Details
2020-04-24 18:43:18 +02:00
Deukhoofd 3ad21fecc2
Performance improvements for getting random value from libraries.
continuous-integration/drone/push Build is passing Details
2020-04-24 18:24:51 +02:00
Deukhoofd dd668f2b1c
Cleanup of ScriptAggregator class.
continuous-integration/drone/push Build is passing Details
2020-04-23 23:23:58 +02:00
Deukhoofd 3a11bba913
Rework ScriptAggregator so it only needs to be created once, and can then be reset.
continuous-integration/drone/push Build is passing Details
2020-04-23 19:57:45 +02:00
Deukhoofd 742d0c772c
Handling for tie breaking
continuous-integration/drone/push Build is passing Details
2020-04-22 23:09:54 +02:00
Deukhoofd 1709617e10
Remove tie breaking by randomness. This caused issues with sorting.
continuous-integration/drone/push Build is passing Details
2020-04-22 23:03:16 +02:00
Deukhoofd 97fa37ea7d
Implements clamped statistics for stat boost.
continuous-integration/drone/push Build is passing Details
2020-04-22 21:48:00 +02:00
Deukhoofd 75baf19ebd
Cleanup 2020-04-22 21:20:07 +02:00
Deukhoofd d2cf26e950
Fixed issue where attack with 1 use remaining couldn't be used.
continuous-integration/drone/push Build is passing Details
2020-04-22 15:03:09 +02:00
Deukhoofd ddbf4c23b8
Fix for compilation issue when using NO_ASSERT.
continuous-integration/drone/push Build is passing Details
2020-04-22 12:54:11 +02:00
Deukhoofd 331767789c
Tweaks and fixes for AttackData name.
continuous-integration/drone/push Build is passing Details
2020-04-21 15:48:21 +02:00
Deukhoofd 83f427368e
Pass LearnedAttack list to creature by reference.
continuous-integration/drone/push Build is passing Details
2020-04-21 14:44:57 +02:00
Deukhoofd bf6f77d904
Pass Random of GetRandomAttack by reference.
continuous-integration/drone/push Build is passing Details
2020-04-21 12:43:08 +02:00
Deukhoofd eff755a901
Rework of GetRandomAttack
continuous-integration/drone/push Build is passing Details
2020-04-21 12:41:26 +02:00
Deukhoofd a54459cc57
Fixes for effect. 2020-04-21 12:31:53 +02:00
Deukhoofd 0260f3688e
Revert "Don't link C libraries statically by default for Windows, as this isn't needed if another library has their own C libraries already has them statically linked."
continuous-integration/drone/push Build is passing Details
This reverts commit e35f860b
2020-04-21 10:22:17 +02:00
Deukhoofd 78a42deb90
Use nullptr as non existing effect.
continuous-integration/drone/push Build is failing Details
2020-04-19 19:49:04 +02:00
Deukhoofd 5146a70d8b
Fixed naming error.
continuous-integration/drone/push Build is passing Details
2020-04-19 19:15:50 +02:00
Deukhoofd a580649224
Ensure AddLevelAttack adds to distinctMoves
continuous-integration/drone/push Build is failing Details
2020-04-19 19:11:48 +02:00
Deukhoofd 680f949df8
Return nullptr from LearnableAttacks when trying to retrieve from empty.
continuous-integration/drone/push Build is passing Details
2020-04-19 18:50:32 +02:00
Deukhoofd b286d1726d
Fix get random value from baselibrary returning key instead of value.
continuous-integration/drone/push Build is passing Details
2020-04-19 18:22:27 +02:00
Deukhoofd aeac49d892
Made GetRandomAttack const.
continuous-integration/drone/push Build is passing Details
2020-04-19 17:51:36 +02:00
Deukhoofd ad9cbf0670
Implements GetRandomAttack method on LearnableAttacks.
continuous-integration/drone/push Build is passing Details
2020-04-19 17:42:32 +02:00
Deukhoofd c6ce5fe8a7
Add function to BaseLibrary class to retrieve random value.
continuous-integration/drone/push Build is passing Details
2020-04-19 17:01:33 +02:00
Deukhoofd 3dcefebee7
Add ChangeEffectiveness script hook.
continuous-integration/drone/push Build is passing Details
2020-04-19 13:07:28 +02:00
Deukhoofd 88d55998d0
Change DamageSource enum to Arbutils Enum.
continuous-integration/drone/push Build is passing Details
2020-04-19 12:59:25 +02:00
Deukhoofd a200c7cde8
Make Battle fields protected instead of private.
continuous-integration/drone/push Build is passing Details
2020-04-18 15:22:38 +02:00
Deukhoofd 88a8a28cc6
Pass item constructor flags by reference.
continuous-integration/drone/push Build is passing Details
2020-04-17 20:53:33 +02:00
Deukhoofd 317f616be2
Change EffectParameter string to ConstString, changed to Variant.
continuous-integration/drone/push Build is passing Details
2020-04-15 19:05:24 +02:00
Deukhoofd cb942c4e89
Rename C interface for getting last exception
continuous-integration/drone/push Build is passing Details
2020-04-14 15:43:30 +02:00
Deukhoofd e35f860b84
Don't link C libraries statically by default for Windows, as this isn't needed if another library has their own C libraries already has them statically linked.
continuous-integration/drone/push Build is passing Details
2020-04-12 10:54:47 +02:00
Deukhoofd 2e5d463e45
Throw clean exception when no volatile script is found when adding one.
continuous-integration/drone/push Build is passing Details
2020-04-11 00:22:08 +02:00
Deukhoofd 79c4d28c75
Use cache for conan files in between steps.
continuous-integration/drone/push Build is passing Details
2020-04-10 23:12:34 +02:00
Deukhoofd 04bf061115
Removed OnStatusMove hook, now just uses OnSecondaryEffect hook.
continuous-integration/drone/push Build is passing Details
2020-04-10 23:06:19 +02:00
Deukhoofd 5ac2b7b3c9
Turn SecondaryEffect class into pointer type, owned by AttackData.
continuous-integration/drone/push Build is passing Details
2020-04-10 22:17:48 +02:00
Deukhoofd beb50a60b0
Rework of EffectParameter storage, added float value.
continuous-integration/drone/push Build is passing Details
2020-04-10 21:05:44 +02:00
Deukhoofd a6ab69e043
Fixed EffectParameter memory leak.
continuous-integration/drone/push Build is passing Details
2020-04-10 20:15:05 +02:00
Deukhoofd d2320fde3c
Unit tests for EffectParameters.
continuous-integration/drone/push Build is failing Details
2020-04-10 20:09:15 +02:00
Deukhoofd e934e13950
Replace void* for script parameter with EffectParameter class.
continuous-integration/drone/push Build is passing Details
2020-04-10 17:54:45 +02:00
Deukhoofd 1537a5f316
Initialize script with move effect parameters.
continuous-integration/drone/push Build is passing Details
2020-04-10 17:18:19 +02:00
Deukhoofd 49e0f00237
Initialize CreateCreature with ConstString instead of std::string.
continuous-integration/drone/push Build is passing Details
2020-04-10 16:44:25 +02:00
Deukhoofd e89d2a9e0c
Adds secondary effect parameter system.
continuous-integration/drone/push Build is failing Details
2020-04-10 16:35:24 +02:00
Deukhoofd 141b8bbc5b
Remove force from conan alias upload in the hope of fixing it.
continuous-integration/drone/push Build is passing Details
2020-04-09 18:43:19 +02:00
Deukhoofd 7194d3f4f8
Remove issue for Windows build.
continuous-integration/drone/push Build is passing Details
2020-04-09 18:38:00 +02:00
Deukhoofd 88eda6ef94
Update to new version of Arbutils.
continuous-integration/drone/push Build is failing Details
2020-04-09 18:19:21 +02:00
Deukhoofd 70fc8d2d5f
Add C interface for ExecutingAttack.
continuous-integration/drone/push Build is passing Details
2020-04-06 17:05:32 +02:00
Deukhoofd 9ff5df1b70
Add C interface for secondary effect data.
continuous-integration/drone/push Build is passing Details
2020-04-06 12:53:49 +02:00