qndel
354e329644
Players[MyPlayerId] -> MyPlayer
4 years ago
DakkJaniels
dad46e1905
Item special effect enum ( #4129 )
4 years ago
Gleb Mazovetskiy
f8a72fddd3
Reduce 12px font space width from 9px to 5px
...
Fixes #4397
4 years ago
staphen
b85485b8f3
Resolve game crash when syncing Diablo items in Hellfire games
4 years ago
KPhoenix
fb8f0c3501
Update pack_test.cpp
4 years ago
Gleb Mazovetskiy
076b0c0c05
Overhaul tests
...
1. Adds a `libdevilution_so` target when tests are enabled.
2. Each test file is now a separate binary target linked against `libdevilutionx_so` (can now run tests in parallel).
3. Tests are now defined in a separate `test/CMakeLists.txt` file.
4. Building the tests is now controlled by the standard `BUILD_TESTING` option (defined by CTest).
5. Tests are now built by default.
6. On CI, test errors are now reported.
Also:
* `.clang-format`: Enable SortIncludes in tests
* `path_test.cpp`: Fix -Wsign-compare
4 years ago
Andrew James
4a940b1b07
Remove uses of Items[] as a temporary for other Item variables ( #2924 )
4 years ago
Gleb Mazovetskiy
3d308983a8
Migrate to libmpq
...
libmpq is a much simpler alternative to StormLib for reading MPQ archives.
We use our own fork of libmpq: https://github.com/diasurgical/libmpq
Impact:
* DevilutionX is now a lot more portable. Unlike StormLib, libmpq only
needs platform-specific code for Windows.
* Locks around file access **removed** (instead we duplicate the file descriptor for streamed audio only).
* RAM usage is **300 KiB** lower than StormLib.
* Stripped release linux_x86_64 binary is **32 KiB** smaller.
* Amiga build now hangs instead of crashing.
4 years ago
Gleb Mazovetskiy
7d91bc461a
Improve asset file opening
...
Avoid wrapping asset files via StormLib, open them directly via SDL
instead.
4 years ago
Anders Jenbo
84e73e9a53
Match correct generated names in tests
4 years ago
Anders Jenbo
116d3301f8
Load font during tests that depends on it
4 years ago
ephphatha
96451ec6ce
Update spawn tests
5 years ago
ephphatha
a985df1242
Align formatting
5 years ago
ephphatha
e261de18f0
Update hellfire unpack tests to recognise full staff name
5 years ago
ephphatha
f7e0c31d8d
Update item tests to handle staff name prefix changes
...
#3039 changed the way staff variants were named but the item tests were expecting the old logic which called them all "Staff of".
5 years ago
Juliano Leal Goncalves
379a27b64a
♻️ Convert 'ItemType' enum to enum class
...
🎨 Rename 'ItemType' elements to enum class standards
5 years ago
Anders Jenbo
b74feb01dc
🐛 Correctly check if item name will fit in the info panel
5 years ago
Juliano Leal Goncalves
7841c4731e
🚚 Rename 'PkItemStruct' to 'ItemPack'
5 years ago
Juliano Leal Goncalves
bb2dfdfb73
🚚 Rename 'ItemStruct' to 'Item'
5 years ago
Anders Jenbo
96bf75b502
Rename player globals
5 years ago
Anders Jenbo
c3eed43012
Add "useful" items to test
5 years ago
Anders Jenbo
27591cc29f
Fix spawn save game compatability
5 years ago
Anders Jenbo
17c130b2ea
Add 5 items to the tests
5 years ago
Anders Jenbo
58d1e362e4
✅ Add 38 items to the item tests
5 years ago
Anders Jenbo
2200a78c11
✅ Add 4 unique items to test suite
5 years ago
Anders Jenbo
6c8b116f6c
🐛 Evaluate item names the same as the original
5 years ago
Anders Jenbo
e665a0c4b0
♻️ Draw info box text using DrawString
5 years ago
Anders Jenbo
c11945e62b
🎨 Fix line endings
5 years ago
Jmgr
c33182d6de
Modernize deprecated headers
5 years ago
Anders Jenbo
a5f062b747
🎨 Use stdint instead of SDL types
5 years ago
Anders Jenbo
69f2452119
✅ Add Thunderclap to tests
5 years ago
Anders Jenbo
53287ae0b0
✅ Add Gnat Sting to tests
5 years ago
Anders Jenbo
15ea464ddd
✅ Add more items to tests
5 years ago
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
Anders Jenbo
53a3657b29
🚚 Move tests to a standard folder
5 years ago
Gleb Mazovetskiy
08c34400d3
pack_test: Minor fixes
...
1. Use EXPECT instead of ASSERT when comparing items so that we see all
diffs.
2. Avoid a UBSAN error in ComparePackedItems.
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
aba0a8fc44
✅ Clean up name spacesage in tests
5 years ago
Anders Jenbo
bba73ea20f
✨ Handle mixed item origins in multiplayer
5 years ago
Anders Jenbo
a2656637e4
🎨 Format source
5 years ago
Anders Jenbo
8a3ab4ec3f
✅ Test 8 more item types
5 years ago
Anders Jenbo
8f09cc3034
[diablo] 🐛 Correct spelling of Sorcerer
...
Fixes #1074
5 years ago
Anders Jenbo
4de1c05c17
✅ Test more item type generation
5 years ago
Anders Jenbo
ca75c302ef
✅ Test books and oils
5 years ago
Anders Jenbo
723ff62c20
✅ Fully test UnpackItem and PackItem
5 years ago
Anders Jenbo
6bf7de64b1
✅ Test packing an ear
5 years ago
Anders Jenbo
c71efb5960
✅ Better assertions on item generation tests
...
[Diablo/Hellfire] Also clear PkItemStruct when calling PackItem() to
avoid garbage data ending up in the saves.
5 years ago
Anders Jenbo
82858ceb79
✅ Test ear regeneration and multiplayer spell books
5 years ago
Anders Jenbo
036c9d2719
💰 Test gold stacks get's the correct icon
5 years ago
Anders Jenbo
8773faa512
Test regenerating items in Hellfire and Diablo
5 years ago