85 Commits

Author SHA1 Message Date
410487c86b
Initial support for Event Hooks.
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-15 12:24:08 +01:00
6ba708ad12
Implements running from battle.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-15 11:52:10 +01:00
0fad615050
Make LookupGrowthRate use unsigned integers instead of signed ones, to resolve Windows error.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-14 14:09:07 +01:00
f5a71ca807
Fixed memory leak in growth rate library.
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-14 13:42:34 +01:00
649de39571
Implements experience gain on opponent faint.
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-14 13:28:23 +01:00
3baed93597
Implements marking opponents as seen.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-14 12:40:50 +01:00
c25d7b865e
Implements creature switching as turn choice.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-14 12:15:30 +01:00
2ee181bca7
Fixed _onBattleField field of Creature leading to cascading errors on release configuration.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-12 11:14:50 +01:00
dc9296194e
Fixed battle ending after any faint.
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-07 22:52:43 +01:00
f5aa168f1b Also set warnings to errors for Windows build, fix one of those warnings.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-07 22:15:50 +01:00
ef28f9cd52 Ensure static linking for Windows builds. 2019-12-07 22:12:29 +01:00
7c642f7df5 Fixes for damage calculations always using a base power of 0. 2019-12-07 22:09:06 +01:00
262279bd2c Support for ending battles when only one side has creatures that are available for battle. 2019-12-07 21:56:29 +01:00
0483e635ea Reworks test suite, tweaks to Cmake config for Windows.
Some checks failed
continuous-integration/drone/push Build is failing
2019-12-07 13:45:44 +01:00
8897f2282f Put the check for slots filled behind the check whether all choices are set.
This because this check can be more expensive, and should run as little times
as possible. In this case it should only run when all choices are set,
which should be in most cases once a turn.
2019-12-07 12:49:18 +01:00
57f16bc420
Better handling of filling empty slots.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-07 12:13:12 +01:00
345af31464
Update Catch2 to latest version.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-05 13:52:46 +01:00
6f32d1245b
Implemented and fixed all code required to run at least a single turn.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-05 12:56:41 +01:00
5d6ac316eb
Renamed Target class to CreatureIndex 2019-12-05 09:53:48 +01:00
a8730d983f
Used ClangFormat style guide I'm happy with.
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-28 12:55:22 +01:00
3b685ae782
Added layout for CreatureParty 2019-11-28 12:16:03 +01:00
aa356d74d7
Set data for executing attacks.
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-24 11:06:51 +01:00
583bde3768
Adds more script hooks 2019-11-24 10:34:42 +01:00
f6415fba27
Added more script hooks
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-23 11:53:00 +01:00
49bd4813f6 Initialize Creature talent script when battle library is set, allow talent overriding
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-18 18:41:55 +01:00
4d796204f8 Implements functionality for loading scripts. 2019-11-18 08:29:17 +01:00
86f8a1e37b
Adds talent script to Creature class
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-17 11:25:52 +01:00
5e71c59f77
Implements tests for randomness distributions.
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-17 11:05:31 +01:00
3e81784f6f
Fix memory leaks in unit tests.
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-17 10:42:09 +01:00
3a2c9f4c61 Adds tests for ScriptSets
Some checks failed
continuous-integration/drone/push Build is failing
2019-11-17 10:27:18 +01:00
fd16152121 Make scriptset return scripts in order of insertion, unit tests for ScriptSource 2019-11-12 18:38:09 +01:00
cdd1ac992f
Fix build on Linux.
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-11 20:04:59 +01:00
859cd02478 Tests for script aggregator.
Some checks failed
continuous-integration/drone/push Build is failing
2019-11-10 19:55:01 +01:00
d8332f9e40 Another rework for scripthooks, for better performance.
All checks were successful
continuous-integration/drone/push Build is passing
This new version caches pointers to the pointers to scripts, so that we can build the data once and then simply iterate over it whenever we want to run a hook.
2019-11-10 17:08:42 +01:00
e1a8d80863 Add default implementation for OnBeforeTurn script hook.
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-10 14:45:07 +01:00
df3905fa49 Give Creature a virtual destructor.
Some checks failed
continuous-integration/drone/push Build is failing
2019-11-10 14:37:06 +01:00
2a98f051c9 Give ExecutingAttack a virtual destructor.
Some checks failed
continuous-integration/drone/push Build is failing
2019-11-10 14:33:26 +01:00
3488784409 Furter rework on script hooks, simplifying required logic. 2019-11-10 14:32:05 +01:00
f72fd5f905 Make ExecutingAttack be a pointer, as we probably want to keep it around after it has finished executing.
Some checks failed
continuous-integration/drone/push Build is failing
2019-11-09 13:18:45 +01:00
96d1b6251f Implements OnSecondaryEffect script hook 2019-11-09 13:09:39 +01:00
aca3359c98 Fixed compile error in OnAfterHits script hook. 2019-11-09 12:57:12 +01:00
658672a246 More handling of script hooks. 2019-11-09 12:55:48 +01:00
ee14efe22e Implemented better script handling. 2019-11-09 12:15:45 +01:00
c3bfbb569e Initial setup for script hooks (likely to be revamped)
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-08 18:45:43 +01:00
19e1308f93 Improve performance for setting choices. 2019-11-06 18:08:21 +01:00
beac87f981 Reset choices on side when executing turn. 2019-11-06 18:06:48 +01:00
5fc2bf564a Support turn queue return prematurely when a creature is recalled, and the ability to resume it later. 2019-11-06 18:04:00 +01:00
f184572837 Add virtual destructor to the CriticalLibrary
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-05 18:26:27 +01:00
2ecc5cfccd Implements critical calculation, fixes some library pointers being unset, causing segfaults.
Some checks failed
continuous-integration/drone/push Build is failing
2019-11-05 17:42:45 +01:00
b290f16a15 Give DamageLibrary an implementation for its destructor.
Some checks failed
continuous-integration/drone/push Build is failing
2019-11-05 17:27:54 +01:00