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
|
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 |
Deukhoofd
|
0b9028ea97
|
Fixes BattleSide AddVolatile using the wrong script category.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2021-10-29 18:12:35 +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
|
47c3429295
|
Adds optional optimization to history helper functions to limit the max amount of turns searched through.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2021-10-24 11:10:30 +02:00 |
Deukhoofd
|
7354c835e6
|
Fixes memory leak.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2021-10-23 18:38:12 +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
|
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
|
a361716233
|
Made Creature::GetStatusName const.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2021-09-21 22:19:26 +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
|
152ac7e407
|
Don't throw an exception when teaching an attack when we don't have the max amount of attacks yet.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2021-08-29 17:16:36 +02:00 |
Deukhoofd
|
512a39e158
|
Deal with Creatures being deleted before a battle they're part of.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2021-08-28 19:05:52 +02:00 |
Deukhoofd
|
d89e0b0d77
|
Adds function on battleside to get a creature at an index.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2021-08-23 21:38:47 +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
|
762915b1f7
|
Add new Creature::IsUsable function, which replaces IsFainted functionality in several places.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2021-06-19 12:33:31 +02:00 |
Deukhoofd
|
8241a2d7b1
|
Check if target of attack is a valid target for that attack.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2021-05-24 10:57:17 +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
|
188e88ab80
|
Store CreatureIndex on Creature, includes helper function to get a creatures party from a battle.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2021-05-08 11:53:32 +02:00 |
Deukhoofd
|
305eb5efb2
|
Cleanup for Creature class battle data.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2021-05-08 11:26:35 +02:00 |
Deukhoofd
|
8a9a6af0af
|
Pass battle pointer along with clone for battleside.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2021-04-13 22:45:48 +02:00 |
Deukhoofd
|
ba5e937dbd
|
Remove copying historyholder for now, as it causes issues.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2021-04-11 23:29:00 +02:00 |
Deukhoofd
|
2b1a1792bf
|
Make Clone functions const.
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2021-04-11 16:01:18 +02:00 |
Deukhoofd
|
84a14cff2b
|
Support for cloning battles for AI purposes.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2021-04-11 15:20:50 +02:00 |
Deukhoofd
|
23bd0da646
|
Adds swap event when two creatures swap positions.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2021-03-28 11:58:26 +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
|
bfe83ef271
|
When adding volatile script, return the script object.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2021-03-27 16:36:20 +01:00 |
Deukhoofd
|
46307fe71f
|
Initial work on attack fail handling.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2021-03-27 12:30:12 +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
|
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
|
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
|
987f60ee85
|
Clear scripts from creature when a battle is cleared from it.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2021-01-15 16:31:47 +01:00 |
Deukhoofd
|
66b95a6e4d
|
Reset seen opponents on ClearBattle.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2021-01-15 15:46:48 +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
|
87bbae678a
|
Style Fixes
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-12-13 12:26:54 +01:00 |
Deukhoofd
|
e642f374b9
|
Update to latest Arbutils.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-12-13 12:15:40 +01:00 |
Deukhoofd
|
2055837980
|
Make learned attacks on Creature be optional.
continuous-integration/drone/push Build is passing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-12-12 15:10:18 +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
|
53bfbd36c2
|
Use a precompiled header.
continuous-integration/drone/push Build is failing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-09-25 13:05: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
|
3233daf9ab
|
More defensive programming.
continuous-integration/drone/push Build is failing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-30 13:14:33 +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
|
b096fb9533
|
Dont set nickname to species internal name.
continuous-integration/drone/push Build is failing
Details
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-25 19:12:35 +02:00 |
Deukhoofd
|
86ed173d30
|
Defensive programming for Party
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
|
2020-08-24 20:37:22 +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 |