Gleb Mazovetskiy
f6c5e9db12
clang-format: single-line functions and if guards
2 years ago
KPhoenix
50afd4311b
Validation: Validate Item Drop Packets
2 years ago
staphen
a0e53cac82
Don't validate creation flags on gold
3 years ago
staphen
4deae11871
Fix PlayerNetPack validation and tests
3 years ago
Stephen C. Wills
45dbe6aa61
Shift software cursor graphic and remove special casing ( #6512 )
3 years ago
Stephen C. Wills
7b06703842
Add tests for net player validation ( #6492 )
3 years ago
Anders Jenbo
1af58fa4de
Update CI test demo recording
3 years ago
Anders Jenbo
8e7c29ecd3
Remove unused player property _pISplDur
3 years ago
Anders Jenbo
63277a842d
Clean up player packing
3 years ago
Anders Jenbo
efa51993e3
Split network player sync and hero save file
3 years ago
Anders Jenbo
8f74f86a6e
🐛 Use the alternate stairs up banner is active
3 years ago
qndel
3500dc1861
code cleanup
3 years ago
ephphatha
328a65424d
Add cases for non-arrow missiles
3 years ago
ephphatha
f90e969108
Use multiple samples instead of specific seeds to test missile rotations
...
This is a visual effect, shouldn't need to be repeatable from a specific starting seed (even in multiplayer?)
3 years ago
ephphatha
3bbb80d849
Introduce temporary function to advance the global rng state and discard results
3 years ago
ephphatha
b98e5fcfad
split logic responsible for advancing global generator state to a dedicated function
...
Exposing this also allows updating the engine test case to avoid peeking at the engine state after a roll, also will be useful for setting item/object seeds
3 years ago
Anders Jenbo
b38efb6ccf
Fix code style
3 years ago
Anders Jenbo
6e7ed13336
Add missing Hellfire healing potions to test data
3 years ago
Anders Jenbo
116bd3f626
Decompose iCreateInfo fixture table
3 years ago
Anders Jenbo
261776b255
Correct OOB check in PrepareInnerBorders()
3 years ago
obligaron
7985a9211d
Change Player::_pSplLvl to uint8_t
3 years ago
Anders Jenbo
13c5c09990
Clean up Light related naming
...
A few are left unchanged as they will be removed in a later commit
3 years ago
obligaron
abcea9853c
Update timedemo test to include improved lightning
3 years ago
Anders Jenbo
ec9d1b5550
Rename _oLight to applyLighting
3 years ago
DakkJaniels
24bb409086
Remove extra entry in experience level table and cap experience at level 50 requirement ( #5782 )
3 years ago
obligaron
b87711bc08
Reintroduce Player::spellFrom to seperate teleport cursor from queued spell
3 years ago
obligaron
eeca953615
Introduce UpdateHellfireFlag to set missing CF_HELLFIRE flag
3 years ago
obligaron
0426908988
Introduce GetTranslatedItemName/GetTranslatedItemNameMagical
3 years ago
obligaron
6f9453c00e
Introduce GenerateStaffName/GenerateStaffNameMagical
3 years ago
Gleb Mazovetskiy
e35595a1eb
StrCat improvements
...
1. Use `fmt::format_int` directly instead of parsing a format string.
2. Use `AppendStrView`.
3. Define the varargs versions using fold expressions when available.
4. Add tests.
3 years ago
obligaron
4cdd7ff2d9
Replace ReturnLevel/LevelTyp/LvlPosition
3 years ago
Gleb Mazovetskiy
f2cb9f0fa0
file_util: Implement `RecursivelyCreateDir`
...
With this, we no longer require `std::filesystem` support to create the
save file directory when it does not exist.
Note that by default the save file directory exists because it is
created by SDL, so this is mostly useful on platforms that override the
save directory or use `UNPACKED_SAVES`.
3 years ago
obligaron
adeeae2c52
Add option to enable singleplayer quests in multiplayer
3 years ago
obligaron
4fde59a494
drlg_test: Add TestInitGame helper
3 years ago
Gleb Mazovetskiy
1a1a282d9a
Use C FILE instead of C++ streams throughout
...
Reduces binary size by ~2 KiB and may improve compatibility with oddball
systems (e.g. PS2).
3 years ago
KPhoenix
d813f13700
`enum spell_id` -> `enum class SpellID`
3 years ago
ikonomov
d05992da75
Remove "Zen" hit recovery ( #5724 )
...
The description of Harmony says "Fastest", clearly implying that this is the fastest recovery bonus that is attainable for a given character and also an indication that the bonus is not cumulative with other items.
3 years ago
Eric Robinson
ef3a57b7d9
`enum spell_type` -> `enum class SpellType` ( #5674 )
3 years ago
ikonomov
7e11d63004
Update CMakeLists.txt
3 years ago
KPhoenix
8db521727d
`enum missile_id` -> `enum class MissileID`
...
Changes `enum missile_id` to `enum class MissileID`
3 years ago
staphen
0d43f468e5
Improve missile collision interpolation logic
3 years ago
Gleb Mazovetskiy
5bf9dfd7ee
Demo mode: Force resolution to that of the demo
3 years ago
Gleb Mazovetskiy
4f9e9e04b1
Fix ConsumeScroll
...
Fixes #5617
3 years ago
obligaron
4cec35ea77
Update timedemo test
3 years ago
Gleb Mazovetskiy
eb45753c4d
Fix writehero_test on big-endian
...
`PlayerPack` struct should be little-endian even on big-endian systems.
3 years ago
Gleb Mazovetskiy
9a1587060d
Use real `CalculateSoundPosition` with NOSOUND
...
Fixes big-endian tests, which currently build with `-DNOSOUND`
to reduce build time.
3 years ago
Gleb Mazovetskiy
cea6a01de7
More item packing fix on big-endian
...
Refs #5573
3 years ago
Anders Jenbo
d67dec05e1
Update timedemo test
3 years ago
Gleb Mazovetskiy
44c3bc4038
pack_test: Make fixtures little-endian on BE
...
Packed items are supposed to be little-endian even on big-endian
systems. Makes all test fixtures little-endian.
Refs #5573
3 years ago
Gleb Mazovetskiy
25a2b59f89
drlg_test: fix LoadExpectedLevelData on BE
3 years ago