Commit Graph

188 Commits

Author SHA1 Message Date
Deukhoofd 5c005f31fe
Fixes build
continuous-integration/drone/push Build is passing Details
2022-05-28 11:29:33 +02:00
Deukhoofd 782e9b90a8
Change types on Creature to List instead of vector
continuous-integration/drone/push Build is passing Details
2022-05-26 12:49:47 +02:00
Deukhoofd e6f38cfb26
Rework several libraries to use new StringViewDictionary
continuous-integration/drone/push Build is failing Details
continuous-integration/drone Build is failing Details
2022-05-16 17:21:39 +02:00
Deukhoofd f13b78e297
LoadItemScript should return a borrowed ptr
continuous-integration/drone/push Build is passing Details
2022-05-15 10:00:25 +02:00
Deukhoofd 727aab37d7
Fixes several potential leaks
continuous-integration/drone/push Build is passing Details
2022-05-14 17:36:38 +02:00
Deukhoofd de6d39376f
Rework script handling to use smart pointers properly
continuous-integration/drone/push Build is failing Details
2022-05-14 16:07:32 +02:00
Deukhoofd a8c80a3c66
Adds C Interface for Item choice
continuous-integration/drone/push Build is passing Details
2022-04-23 18:26:46 +02:00
Deukhoofd 842d708996
Enable pedantic errors
continuous-integration/drone/push Build is failing Details
2022-04-02 12:33:26 +02:00
Deukhoofd beb2e44a0b
Further work on replacing integer definitions, make missing sanitizer only a warning instead of an error
continuous-integration/drone/push Build is passing Details
2022-03-23 14:19:07 +01:00
Deukhoofd 3cc19de61f
Update to latest Arbutils, use new integer defines 2022-03-23 13:56:45 +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 1c51edb2b9
Adds C Interface for Talent + TalentLibrary
continuous-integration/drone/push Build is passing Details
2021-11-27 10:37:12 +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 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 b4ef1ea98e
Adds getter for Battle on BattleSide.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-10-28 15:01:31 +02:00
Deukhoofd 19375c2f87
Adds functions to add, remove, and get volatile scripts from a BattleSide.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-10-28 14:49:24 +02:00
Deukhoofd 51897e42da
Make HistoryHolder a pointer instead of value.
continuous-integration/drone/push Build is failing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-10-23 17:17:34 +02:00
Deukhoofd ff67ab9e00
Adds helper function to get last damage event on a creature.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-10-23 17:08:54 +02:00
Deukhoofd 20b53833c4
Cleans up HistoryHolder to be a lot less complicated (although possibly a bit slower), adds DamageHistory.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-10-23 16:57:58 +02:00
Deukhoofd ce30077a5d
Change Creature::Nickname to be an optional.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-09-19 11:40:18 +02:00
Deukhoofd 9a72c1051e
fixes typo
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-07-09 15:53:24 +02:00
Deukhoofd 08120d5433
Adds status handling functions
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-07-09 15:33:30 +02:00
Deukhoofd 9303ec53e0
Adds C Interface for AllowedExperienceGain
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-06-26 11:48:13 +02:00
Deukhoofd 13153b3119
Support overriding attacks through script hooks.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-05-13 13:16:52 +02:00
Deukhoofd 1ddbfd2357
Fixes for ScriptSet throwing when adding a not yet found volatile script.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-03-27 20:20:49 +01:00
Deukhoofd 9b7c271a20
Support for swapping two creatures on a side.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-03-26 12:01:18 +01:00
Deukhoofd 14ebf20f23
Adds getter for pointer to script resolver on battle library.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-03-07 19:04:15 +01:00
Deukhoofd 26c36f8ece
Adds effect field to Items.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-03-07 11:56:07 +01:00
Deukhoofd 3a4171f565
Use Item pointer for Script resolving for item use script.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-03-07 11:24:45 +01:00
Deukhoofd d908efff9d
Adds support for scripts for item use handling.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-03-07 10:54:42 +01:00
Deukhoofd 5178d5dcc0
Renamed Script --> BattleScript, some cleanup on it.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-03-07 10:26:41 +01:00
Deukhoofd 7aa31a838d
Several fixes for attack effects not triggering.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-01-22 13:38:05 +01:00
Deukhoofd abccc23851
Trigger event when stat boost changes.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2021-01-16 21:16:47 +01:00
Deukhoofd 3742e07b03
Rework clearing battle from creatures.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-12-28 15:10:49 +01:00
Deukhoofd a284641b5a
Fixes invalid pointers to a battle dangling when a battle is removed.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-12-28 13:40:39 +01:00
Deukhoofd 69476b6f9d
Adds setter for nickname.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-12-22 16:11:23 +01:00
Deukhoofd 65cf7c52d9
Fixes CInterface for BaseLibrary returning wrong value.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-12-22 16:11:11 +01:00
Deukhoofd 29d6632472
Makes TryGetVariant use an std::optional
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-12-12 14:12:50 +01:00
Deukhoofd 4367d1f5cf
Make HeldItem OptionalBorrowedPtr.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-12-12 13:40:30 +01:00
Deukhoofd 185ec40ba5
Use std::optional for BaseLibrary TryGet.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-12-12 12:42:28 +01:00
Deukhoofd 5c39694f19
Overhaul memory model to new Arbutils memory.
continuous-integration/drone/push Build is failing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-12-12 12:22:48 +01:00
Deukhoofd 1dc3aafd33
Use vector instead of set for types.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-10-23 16:51:15 +02:00
Deukhoofd def38e98c6
Support for getting a creatures actual talent.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-09-05 14:51:06 +02:00
Deukhoofd 32f75f4a47
Store time in turn execution on battle class.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-28 12:24:10 +02:00
Deukhoofd 97c4856117
C Interface for several events.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-25 18:33:39 +02:00
Deukhoofd 482a0fc324
Add C Interface function to get number of hits of executingattack.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-24 20:37:36 +02:00
Deukhoofd 86ed173d30
Defensive programming for Party
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-24 20:37:22 +02:00
Deukhoofd fcdc58176f
Support for getting Creature by ID.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-22 13:24:08 +02:00
Deukhoofd 46ccf8e7bf
Style fix.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-20 13:39:16 +02:00