29 Commits

Author SHA1 Message Date
da90c3d59e
Reset active scripts on Creature when battle is set.
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-17 10:05:32 +01:00
65f054bfab
Added functions for battle to manipulate volatile scripts.
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-16 17:44:41 +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
0ef909cf55
Use ENUM macro for ScriptCategory enum. 2020-02-13 12:53:48 +01:00
e45a36d78e
Move Script ownership to script holder, added OnRemove script hook.
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-05 14:52:50 +01:00
cd7ddcf78e
Actually implement handling of StopBeforeAttack script hook
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-03 19:11:44 +01:00
59f7d3aa4f
Make Script functions pass out parameters by pointer instead of reference.
Some checks failed
continuous-integration/drone/push Build is failing
2020-02-03 18:27:39 +01:00
c4d0a73df6
Remove display script hook functions, replace them with easy to use interface on Creature class.
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-03 16:49:28 +01:00
e3bbc369fc
Revert "Make Script functions use pointers for out variables, instead of references."
This reverts commit c3877e01
2020-01-18 13:38:47 +01:00
c3877e0151
Make Script functions use pointers for out variables, instead of references.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-11 16:05:39 +01:00
836a201b2d
Add initialize function to script resolver, where it can access the battle library.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-11 11:35:59 +01:00
8e53ffb53d
Implements functions for getting display species and variant.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-21 14:32:45 +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
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
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
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
4d796204f8 Implements functionality for loading scripts. 2019-11-18 08:29:17 +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
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
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