Commit Graph

737 Commits

Author SHA1 Message Date
Deukhoofd 23efc9b6ed
Fixes bug in scriptset where lookup would no longer point to valid script after removing one preceding it.
continuous-integration/drone/push Build is passing Details
2022-06-05 12:39:29 +02:00
Deukhoofd b0e2e9935a
Adds more templated functions for getting stats
continuous-integration/drone/push Build is passing Details
2022-05-28 12:31:29 +02:00
Deukhoofd df1fd007f1
Adds templated functions for getting stats
continuous-integration/drone/push Build is passing Details
2022-05-28 12:09:11 +02:00
Deukhoofd 24871b6b65
Make Creature::GetAttacks const
continuous-integration/drone/push Build is passing Details
2022-05-28 11:59:18 +02:00
Deukhoofd 5c005f31fe
Fixes build
continuous-integration/drone/push Build is passing Details
2022-05-28 11:29:33 +02:00
Deukhoofd 6f0e664e74
Adds support for removing volatile script by its hash, checking if Creature has attack by hash.
continuous-integration/drone/push Build is failing Details
2022-05-28 11:24:16 +02:00
Deukhoofd c208394d18
Revert "Adds support for changing talent by its hash, adds support for loading scripts by their name hash."
continuous-integration/drone/push Build is passing Details
This reverts commit e3c997af31.
2022-05-28 11:07:19 +02:00
Deukhoofd e3c997af31
Adds support for changing talent by its hash, adds support for loading scripts by their name hash.
continuous-integration/drone/push Build is passing Details
2022-05-28 11:00:31 +02:00
Deukhoofd 782e9b90a8
Change types on Creature to List instead of vector
continuous-integration/drone/push Build is passing Details
2022-05-26 12:49:47 +02:00
Deukhoofd e1c5460db4
Fix missing header after stdlib update
continuous-integration/drone/push Build is passing Details
2022-05-26 10:07:18 +02:00
Deukhoofd c559e60104
Adds lto as link flag to mold
continuous-integration/drone/push Build is passing Details
2022-05-18 18:18:55 +02:00
Deukhoofd e355b45fa5
Sign build
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is failing Details
2022-05-18 17:41:33 +02:00
Deukhoofd 129a448267
Use mold as linker for clang, if available
continuous-integration/drone/push Build is passing Details
2022-05-18 17:22:57 +02:00
Deukhoofd efb3bf19ec
Removes Valgrind step for now, as it does not support clang 14
continuous-integration/drone/push Build is passing Details
2022-05-16 19:10:04 +02:00
Deukhoofd e6f38cfb26
Rework several libraries to use new StringViewDictionary
continuous-integration/drone/push Build is failing Details
continuous-integration/drone Build is failing Details
2022-05-16 17:21:39 +02:00
Deukhoofd dcf6b20e65
Check if the user is usable when we set the choice
continuous-integration/drone/push Build is passing Details
2022-05-15 11:24:21 +02:00
Deukhoofd f13b78e297
LoadItemScript should return a borrowed ptr
continuous-integration/drone/push Build is passing Details
2022-05-15 10:00:25 +02:00
Deukhoofd 727aab37d7
Fixes several potential leaks
continuous-integration/drone/push Build is passing Details
2022-05-14 17:36:38 +02:00
Deukhoofd a4471ec5b1
Fixes for Arbutils changes
continuous-integration/drone/push Build is passing Details
2022-05-14 16:26:30 +02:00
Deukhoofd de6d39376f
Rework script handling to use smart pointers properly
continuous-integration/drone/push Build is failing Details
2022-05-14 16:07:32 +02:00
Deukhoofd 0117cb9d64
Use smart ArbUt pointers for returning scripts.
continuous-integration/drone/push Build is passing Details
2022-05-14 15:09:58 +02:00
Deukhoofd cd50b2c2e8
Fixed nullptr dereference in ItemUse 2022-05-14 14:56:00 +02:00
Deukhoofd a8c80a3c66
Adds C Interface for Item choice
continuous-integration/drone/push Build is passing Details
2022-04-23 18:26:46 +02:00
Deukhoofd 0e7b9ae1fd
Set up parallelism for drone build
continuous-integration/drone/push Build is passing Details
2022-04-10 13:02:15 +02:00
Deukhoofd 88dd285642
Fixes pedantic problem
continuous-integration/drone/push Build is passing Details
2022-04-02 13:04:08 +02:00
Deukhoofd 842d708996
Enable pedantic errors
continuous-integration/drone/push Build is failing Details
2022-04-02 12:33:26 +02:00
Deukhoofd 4bb353e75b
Make ClearBattleData virtual
continuous-integration/drone/push Build is passing Details
2022-03-26 12:12:10 +01:00
Deukhoofd 24f18c775d
Rework for BattleSide to use std::vector<bool> to deal with some edge cases
continuous-integration/drone/push Build is passing Details
2022-03-26 11:44:40 +01:00
Deukhoofd acf6612eba
Being a bit too careless today, fixes dumb oversight
continuous-integration/drone/push Build is failing Details
2022-03-26 11:38:40 +01:00
Deukhoofd aa48557416
Fixes syntax error
continuous-integration/drone/push Build is failing Details
2022-03-26 11:37:39 +01:00
Deukhoofd 5dff6d735f
Adds BattleRandom methods for unsigned 32 bit numbers
continuous-integration/drone/push Build is failing Details
2022-03-26 11:36:13 +01:00
Deukhoofd 4f77d30a7d
Adds getter for checking if a slot is unfillable
continuous-integration/drone/push Build is failing Details
2022-03-26 11:32:55 +01:00
Deukhoofd bc1f78c8bd
More sanitizer fixes
continuous-integration/drone/push Build is passing Details
2022-03-25 19:21:02 +01:00
Deukhoofd 38a26888be
Fixes declaration of Battle::GetHistory
continuous-integration/drone/push Build is passing Details
2022-03-23 18:48:39 +01:00
Deukhoofd de818c9fd6
Improve readability of BattleScript.hpp
continuous-integration/drone/push Build is passing Details
2022-03-23 18:38:43 +01:00
Deukhoofd eccf2c9121
Add nullability to large parts of the codebase
continuous-integration/drone/push Build is passing Details
2022-03-23 18:30:35 +01:00
Deukhoofd beb2e44a0b
Further work on replacing integer definitions, make missing sanitizer only a warning instead of an error
continuous-integration/drone/push Build is passing Details
2022-03-23 14:19:07 +01:00
Deukhoofd 46bf10c719
Remove debug thing to deprecate old integer format, it was just there for rewriting purposes
continuous-integration/drone/push Build is failing Details
2022-03-23 13:59:29 +01:00
Deukhoofd 3cc19de61f
Update to latest Arbutils, use new integer defines 2022-03-23 13:56:45 +01:00
Deukhoofd 52127f6555
Further fixes for CI
continuous-integration/drone/push Build is passing Details
2022-03-22 18:23:12 +01:00
Deukhoofd ffda0d0abe
Fixes CI
continuous-integration/drone/push Build is failing Details
2022-03-22 18:16:42 +01:00
Deukhoofd 0acc1a2c8e
Add option for address sanitizer in tests, fixes valgrind in drone
continuous-integration/drone/push Build encountered an error Details
2022-03-22 18:16:00 +01:00
Deukhoofd 47cc77f0e5
Add support for AddressSanitizer to unit tests
continuous-integration/drone/push Build is failing Details
2022-03-22 12:30:10 +01:00
Deukhoofd 6e9844b343
Allow changing creature types
continuous-integration/drone/push Build is passing Details
2022-03-12 12:37:26 +01:00
Deukhoofd a015a3fc62
Adds parameter to change stat boost to determine whether its selfinflicted
continuous-integration/drone/push Build is passing Details
2022-03-12 11:34:00 +01:00
Deukhoofd a99e3e2d6c
Fixes GCC build
continuous-integration/drone/push Build is passing Details
2022-03-12 10:33:16 +01:00
Deukhoofd d9dda8433e
Update doctest
continuous-integration/drone/push Build is failing Details
2022-03-11 11:07:25 +01:00
Deukhoofd 8f45ea905a
Fixes memory leak
continuous-integration/drone/push Build is failing Details
2022-02-26 17:33:53 +01:00
Deukhoofd b003e13f2c
Fixes talent exception when changing to a variant with fewer talents
continuous-integration/drone/push Build is failing Details
2022-02-26 16:59:04 +01:00
Deukhoofd 851cb11f11
Usde libdw instead of bfd
continuous-integration/drone/push Build is failing Details
2022-02-26 15:22:11 +01:00