21 Commits

Author SHA1 Message Date
3802587313
Added HasVolatileScript function to Creature and Battle.
Some checks failed
continuous-integration/drone/push Build is failing
2020-02-23 16:17:57 +01:00
5f891cd4ed
Added Remove Volatile functions for battle and creatures.
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-23 11:11:47 +01:00
428483e73d
Make GetRandom in Battle class a pointer.
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-16 17:24:33 +01:00
54e366fc1b
Implements BattleRandom class with support for Effect Chance, and script hooks to modify this.
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-16 15:08:22 +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
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
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
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
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
3488784409 Furter rework on script hooks, simplifying required logic. 2019-11-10 14:32:05 +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
fc675efdf5
More work on basic turn layout.
All checks were successful
continuous-integration/drone/push Build is passing
2019-11-02 13:57:43 +01:00
42c1623985
Fully handle turn ordering
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-31 12:31:31 +01:00
972af35ecf
Initial support for ordering choices and getting them ready for execution.
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-31 12:02:23 +01:00
af611070c5
Fixed syntax error
All checks were successful
continuous-integration/drone/push Build is passing
2019-10-29 11:30:52 +01:00
99315174a8
Initial support for setting battle choices.
Some checks failed
continuous-integration/drone/push Build is failing
2019-10-29 11:19:25 +01:00
d580d81163
Initial work on battling
Some checks failed
continuous-integration/drone/push Build is failing
2019-10-17 14:33:25 +02:00