Commit Graph

695 Commits

Author SHA1 Message Date
Deukhoofd 47cc77f0e5
Add support for AddressSanitizer to unit tests
continuous-integration/drone/push Build is failing Details
2022-03-22 12:30:10 +01:00
Deukhoofd 6e9844b343
Allow changing creature types
continuous-integration/drone/push Build is passing Details
2022-03-12 12:37:26 +01:00
Deukhoofd a015a3fc62
Adds parameter to change stat boost to determine whether its selfinflicted
continuous-integration/drone/push Build is passing Details
2022-03-12 11:34:00 +01:00
Deukhoofd a99e3e2d6c
Fixes GCC build
continuous-integration/drone/push Build is passing Details
2022-03-12 10:33:16 +01:00
Deukhoofd d9dda8433e
Update doctest
continuous-integration/drone/push Build is failing Details
2022-03-11 11:07:25 +01:00
Deukhoofd 8f45ea905a
Fixes memory leak
continuous-integration/drone/push Build is failing Details
2022-02-26 17:33:53 +01:00
Deukhoofd b003e13f2c
Fixes talent exception when changing to a variant with fewer talents
continuous-integration/drone/push Build is failing Details
2022-02-26 16:59:04 +01:00
Deukhoofd 851cb11f11
Usde libdw instead of bfd
continuous-integration/drone/push Build is failing Details
2022-02-26 15:22:11 +01:00
Deukhoofd 5fce541ffb
Adds script hook to change choice speed when determining turn order
continuous-integration/drone/push Build is passing Details
2022-02-19 16:11:25 +01:00
Deukhoofd c078d91b0d
Adds functionality for held items
continuous-integration/drone/push Build is passing Details
2022-02-19 12:19:03 +01:00
Deukhoofd c40f063683
Initial work on item use handling
continuous-integration/drone/push Build is passing Details
2022-02-13 13:40:33 +01:00
Deukhoofd 173c6c9926
Adds pointer to battle library in on initialize function
continuous-integration/drone/push Build is passing Details
2022-02-12 17:19:07 +01:00
Deukhoofd 179b94a677
Adds hook to completely prevent stat boost change
continuous-integration/drone/push Build is passing Details
2022-02-12 15:43:15 +01:00
Deukhoofd 34f1e43269
Adds Script Hook to change stat boost changes
continuous-integration/drone/push Build is passing Details
2022-02-12 15:05:42 +01:00
Deukhoofd 6da591dd92
linker fixes
continuous-integration/drone/push Build is passing Details
2022-02-12 14:00:50 +01:00
Deukhoofd 2a8126e151
Change cmake option TESTS --> CREATURELIB_TESTS
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details
2022-02-05 15:52:03 +01:00
Deukhoofd 712be48e06
Always create include link for Arbutils
continuous-integration/drone/push Build is passing Details
2022-02-05 14:45:10 +01:00
Deukhoofd 48b11f8179
Handle dependencies through CPM
continuous-integration/drone/push Build is passing Details
2022-02-05 13:59:15 +01:00
Deukhoofd 1c51edb2b9
Adds C Interface for Talent + TalentLibrary
continuous-integration/drone/push Build is passing Details
2021-11-27 10:37:12 +01:00
Deukhoofd 9cb2a27007
Adds parameters to OnDamage to show the health change.
continuous-integration/drone/push Build is passing Details
2021-11-21 14:13:31 +01:00
Deukhoofd 0912483ba8
Adds OnDamage script hook.
continuous-integration/drone/push Build is passing Details
2021-11-21 14:02:00 +01:00
Deukhoofd 40d6e8a389
Adds support for changing variant by variant name.
continuous-integration/drone/push Build is passing Details
2021-11-21 13:44:48 +01:00
Deukhoofd 9270dcca8c
Adds OnFaintingOpponent script hook.
continuous-integration/drone/push Build is passing Details
2021-11-21 13:29:41 +01:00
Deukhoofd 70ac3813cf
Cleanup of script hooks to reduce clang warnings. 2021-11-21 13:29:29 +01:00
Deukhoofd f1d706b356
Update to new THROW macro.
continuous-integration/drone/push Build is passing Details
2021-11-21 12:39:07 +01:00
Deukhoofd 54eddba913
Changed my mind about some parameter naming to be clearer.
continuous-integration/drone/push Build is passing Details
2021-11-21 10:47:16 +01:00
Deukhoofd 44dbb5601f
Adds hook to prevent critical hits.
continuous-integration/drone/push Build is passing Details
2021-11-21 10:46:02 +01:00
Deukhoofd f811fc0654
Adds OnIncomingHit script hook.
continuous-integration/drone/push Build is passing Details
2021-11-19 18:01:58 +01:00
Deukhoofd aaadbfb4f2
Adds OnSwitchIn hook.
continuous-integration/drone/push Build is passing Details
2021-11-19 15:36:48 +01:00
Deukhoofd a78b2e54a4
Fixes potential overflow in script suppression.
continuous-integration/drone/push Build is passing Details
2021-11-19 14:09:16 +01:00
Deukhoofd 9ede453587
Support for suppressing a script, so that it temporarily does not function.
continuous-integration/drone/push Build is passing Details
2021-11-19 14:07:27 +01:00
Deukhoofd 53c27d35b6
Trigger OnRemove on Creature when it faints. 2021-11-19 13:52:18 +01:00
Deukhoofd 364bac7de7
Trigger OnRemove on a Creatures scripts when it gets switched out. 2021-11-19 13:49:19 +01:00
Deukhoofd a570e90f67
Adds GetLastUsedAttackOnTarget helper to BattleHistory
continuous-integration/drone/push Build is passing Details
2021-11-19 13:08:34 +01:00
Deukhoofd a89d79f8bc
Adds DamageSource::Misc.
continuous-integration/drone/push Build is passing Details
2021-11-19 12:51:51 +01:00
Deukhoofd c27b87b01a
Fixes build.
continuous-integration/drone/push Build is passing Details
2021-11-19 12:21:46 +01:00
Deukhoofd c6d814e886
Adds DamageSource to OnFaint script hook.
continuous-integration/drone/push Build is failing Details
2021-11-19 12:15:38 +01:00
Deukhoofd 2ea928e67b
Adds OnFaint script hook.
continuous-integration/drone/push Build is passing Details
2021-11-19 12:12:46 +01:00
Deukhoofd 59313e6da8
Breaking change: rework of talents.
continuous-integration/drone/push Build is passing Details
2021-11-15 12:04:58 +01:00
Deukhoofd 33d384c464
Support for failing an AttackTurnChoice.
continuous-integration/drone/push Build is passing Details
This is handled before the actual ExecutingAttack is created, so allows for failing a move a lot earlier than before.
2021-11-12 12:54:34 +01:00
Deukhoofd 1a3b7fe50a
Fixes build.
continuous-integration/drone/push Build is passing Details
2021-10-30 17:54:37 +02:00
Deukhoofd 2bd73bd4ef
Reset weight/height when variant changes, when a creature is moved out of the battle.
continuous-integration/drone/push Build is failing Details
2021-10-30 17:50:26 +02:00
Deukhoofd a12972472b
Adds Creature specific weight and height, which can be modified dynamically during battles.
continuous-integration/drone/push Build is passing Details
2021-10-30 17:07:13 +02:00
Deukhoofd 2e2abfe122
Reference Arbutils/Enum in ScriptCategory.hpp
continuous-integration/drone/push Build is passing Details
2021-10-30 14:31:43 +02:00
Deukhoofd e1d8348b2f
Fixes project being completely dirty every build requiring constant full rebuilds and slowing down tooling.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-10-30 14:24:38 +02:00
Deukhoofd d55b40f3d0
Adds newline for GCC.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-10-29 23:55:41 +02:00
Deukhoofd cb6725ab5e
Adds support for script owner to clone command.
continuous-integration/drone/push Build is failing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-10-29 21:55:49 +02:00
Deukhoofd be7a5fe6bd
More work on setting owner of a script.
continuous-integration/drone/push Build is failing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-10-29 21:40:10 +02:00
Deukhoofd 949fc67831
Add support for saving and getting the owner of a script in script.
continuous-integration/drone/push Build is failing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-10-29 21:31:01 +02:00
Deukhoofd 5fd8abb3a8
Reworks ScriptSources so we can get individual scripts on a source. Fixed OnEndTurn making no sense.
continuous-integration/drone/push Build is failing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-10-29 19:31:08 +02:00