Commit Graph

737 Commits

Author SHA1 Message Date
Deukhoofd 1d03adf0d1
Implements replacement attack when an attack can't be used anymore, adds clearer exception handling. 2020-07-26 18:00:58 +02:00
Deukhoofd 36f1e5beeb
Further work on better exceptions. 2020-07-26 17:41:11 +02:00
Deukhoofd 29eb7c603a
More reworks of exceptions. 2020-07-26 17:29:06 +02:00
Deukhoofd 9ec41fdd2d
Rework how the C Interface shows exceptions 2020-07-26 17:22:36 +02:00
Deukhoofd 418d811d18
Rework of C Interface exception handler. 2020-07-26 16:30:00 +02:00
Deukhoofd a4bb8864a0
When creating a CreatureParty with a size, don't just reserve the space, but append nullptr as well. 2020-07-26 16:08:41 +02:00
Deukhoofd 8ba564d4b7
C Interface for getting party from BattleParty. 2020-07-26 15:46:11 +02:00
Deukhoofd 7ed118e5de
Fixed issue in BattleParty C Interface. 2020-07-26 15:29:16 +02:00
Deukhoofd a6ed6d63cc
Add individual C Interface destructors for turn choices. 2020-07-26 11:37:05 +02:00
Deukhoofd 141f0338bf
Fixed naming in AttackTurnChoice C Interface. 2020-07-26 11:24:31 +02:00
Deukhoofd 436e68293e
Support for passing a random seed. 2020-07-26 10:16:25 +02:00
Deukhoofd e6f84f182a
Add Creature getter for the library. 2020-07-25 15:02:11 +02:00
Deukhoofd 8f921ce89b
Add support for swapping in and out of a party. 2020-07-25 14:35:13 +02:00
Deukhoofd 3f447a3e16
Add C Interface for Creature::GetActiveTalent. 2020-07-24 10:16:57 +02:00
Deukhoofd a4faa1351b
Mark exported functions as maybe unused. 2020-07-24 10:14:10 +02:00
Deukhoofd be82abeece
Change nickname to string from string_view. 2020-07-19 12:15:14 +02:00
Deukhoofd 75810b9d0c
Implements C Interface for SpeciesVariant.GetRandomTalent 2020-07-18 12:20:47 +02:00
Deukhoofd 4fe0c70635
Implements C Interface for Species.GetRandomGender 2020-07-17 14:43:04 +02:00
Deukhoofd ee9e5cd11b
Further path fixing. 2020-07-17 13:30:26 +02:00
Deukhoofd 869a2ade90
Remove invalid command on build. 2020-07-17 13:21:27 +02:00
Deukhoofd aa1e60af18
Fix paths 2020-07-17 13:15:08 +02:00
Deukhoofd f273c9c90f
Make build also use test build. 2020-07-17 13:12:58 +02:00
Deukhoofd 367ed7fcbb
Cleanup CMake file. 2020-07-17 13:12:21 +02:00
Deukhoofd 5032377554
Remove Random passes by pointer. 2020-07-12 15:26:00 +02:00
Deukhoofd abab1d0f9a
Force colour for style check. 2020-07-07 15:44:20 +02:00
Deukhoofd 2225d32432
Cleanup of C Interface, remove use of operator->, as it will throw when null. 2020-07-07 15:43:31 +02:00
Deukhoofd c6974b6b5b
Adds getter for Script for ExecutingAttack. Mostly useful for unit tests etc. 2020-07-04 18:13:36 +02:00
Deukhoofd 47515399fe
Supports iterating over BaseLibrary. 2020-07-04 17:18:24 +02:00
Deukhoofd 61bf868583
Update to newer Arbutils. 2020-07-04 15:12:12 +02:00
Deukhoofd 772619db0f
Changed LoadScript to StringView. 2020-06-26 18:23:40 +02:00
Deukhoofd 48639eeee5
Update to new Arbutils 2020-06-26 17:08:23 +02:00
Deukhoofd f50f76e993
Move priority scripthook to more sensible place in turn flow. 2020-06-20 19:51:34 +02:00
Deukhoofd b3366f7b58
Script hook for changing priority. 2020-06-20 19:44:41 +02:00
Deukhoofd f55ae5a809
Syntax fixes. 2020-06-20 18:53:10 +02:00
Deukhoofd 14458ec30c
Bring Library class in line with style lines. 2020-06-20 18:50:55 +02:00
Deukhoofd add77325a4
Several additional checks to ensure battle does not finish turn when ended. 2020-06-12 16:48:49 +02:00
Deukhoofd fd1c6e9a0a
If no side is still alive, mark battle as inconclusive ended. 2020-06-12 16:25:21 +02:00
Deukhoofd 32bb641f75
Fixed issue with underflow in ScriptAggregator. 2020-06-12 15:49:37 +02:00
Deukhoofd 3358bf7378
Fixed comparing int32_t with uint32_t. 2020-06-10 14:46:45 +02:00
Deukhoofd c8314d6018
Support for changing variants. 2020-06-10 14:39:20 +02:00
Deukhoofd 637649c993
Deal with talent indices that are out of bounds. 2020-06-10 12:29:38 +02:00
Deukhoofd fccf339e76
Implements genderless mons. 2020-06-10 12:16:09 +02:00
Deukhoofd fc74a7d4bd
Fixed broken test. 2020-06-05 18:10:58 +02:00
Deukhoofd fddf2cabab
Rework ScriptIterator to jump to first value on reset. 2020-06-05 18:06:45 +02:00
Deukhoofd 9e7607338f
Moved Creature types to creature itself, instead of using the variant types. 2020-06-05 16:38:27 +02:00
Deukhoofd 3c5b3d5c03
Fixed potential reaching end of function. 2020-06-05 15:42:28 +02:00
Deukhoofd 66379bfa65
Initial support for handling multi target attacks. 2020-06-05 15:32:05 +02:00
Deukhoofd f463ba8496
Simplify check whether mon is on battle field. 2020-06-05 14:35:23 +02:00
Deukhoofd 44de4a0799
Use std::algorithm for Battle::CreatureInField 2020-06-05 14:15:20 +02:00
Deukhoofd 57e8595bdf
Make ExecutingAttack creature list a raw C array, as this is a hot spot and could use some optimization. 2020-06-04 21:58:28 +02:00