Commit Graph

163 Commits

Author SHA1 Message Date
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
Deukhoofd 39e1295013
Compile time option to change bit size of level.
continuous-integration/drone/push Build is failing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-19 20:11:00 +02:00
Deukhoofd ba97fa8579
C Interface to initialize creature.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-17 17:23:03 +02:00
Deukhoofd a828e2d09c
Update to latest Arbutils
continuous-integration/drone/push Build is failing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-16 17:41:56 +02:00
Deukhoofd 2b703954a5
Some fixes for stacktraces.
continuous-integration/drone/push Build is failing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-15 17:47:01 +02:00
Deukhoofd de07dcda4d
Initialize static variable
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-15 16:39:37 +02:00
Deukhoofd 93a763ab78
Rework exceptions.
continuous-integration/drone/push Build is failing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-15 16:34:52 +02:00
Deukhoofd c921d3127b
Update to latest Arbutils, include stacktrace.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-15 15:10:48 +02:00
Deukhoofd 46ab060b99
C Interface to get targets array from ExecutingAttack.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-14 17:59:56 +02:00
Deukhoofd 73f48eab7a
C Interface for History.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-14 17:24:12 +02:00
Deukhoofd 64b08d4ff0
Cleaned up Events, added events on species and variant changes.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-14 13:52:22 +02:00
Deukhoofd bb35248174
Support changing species for a creature.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-13 10:38:56 +02:00
Deukhoofd 51325943ab
Support swapping attacks.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-12 18:54:01 +02:00
Deukhoofd 9c6d149ad9
Support for adding and replacing attacks.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-12 17:51:06 +02:00
Deukhoofd 2c4c0f2277
Rework LearnableAttacks to use ArbUt::BorrowedPtr
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-11 19:09:58 +02:00
Deukhoofd 7ac63839b8
Fixes and improvements for LearnableAttacks,
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-11 18:53:01 +02:00
Deukhoofd f3d22f7ba9
Support getting distinct level attacks from LearnableAttacks.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-11 17:25:04 +02:00
Deukhoofd b2931c0964
C Interface hook for getting number of creatures per side.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-11 16:56:39 +02:00
Deukhoofd 2ca4f53b0c
Support for adding flags to CreatureSpecies and CreatureVariant.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-10 17:46:09 +02:00
Deukhoofd 1807e720dd
Support for packing party.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-10 17:37:30 +02:00
Deukhoofd 3a75a40671
Support getting an item from BaseLibrary by index, for iterating purposes.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-10 17:01:21 +02:00
Deukhoofd 48660f3a4c
Adds getter for UniqueIdentifier
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-09 11:48:40 +02:00
Deukhoofd fb56d0920d
Add C Interface for Variants count.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-08 19:08:24 +02:00
Deukhoofd 15100f3cd5
Add functionality to retrieve a variants list.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-08 18:56:00 +02:00
Deukhoofd 4ffc8ba01f
Support for getting type names from TypeLibrary.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-08 12:54:28 +02:00
Deukhoofd 4ef24dd122
Helper method to restore all attack uses on a Creature.
continuous-integration/drone/push Build is passing Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
2020-08-08 11:32:25 +02:00