staphen
4deae11871
Fix PlayerNetPack validation and tests
3 years ago
Eric Robinson
9995c00323
Validate Item Locations ( #6427 )
3 years ago
Stephen C. Wills
7b06703842
Add tests for net player validation ( #6492 )
3 years ago
staphen
b43a8dc904
Fix empty item slot validation in UnPackNetItem()
3 years ago
Anders Jenbo
b01670e1e4
Correct fields being validated
3 years ago
Eric Robinson
46824261f9
Validate iCreateInfo ( #6377 )
...
Co-authored-by: staphen <staphen@gmail.com>
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
Co-authored-by: Stephen C. Wills <swills@gridprotectionalliance.org>
3 years ago
Stephen C. Wills
f0f317e685
Log validation errors in UnPackNetPlayer() ( #6363 )
3 years ago
Anders Jenbo
97ee615a8a
Avoid durability overflow when packing items. ( #6342 )
3 years ago
Anders Jenbo
01d2a46a8d
Validate items when unpacking importing
3 years ago
Eric Robinson
2c7704bfe0
Validate Base Life and Mana ( #6289 )
3 years ago
staphen
cc5261fa15
Support for ears in PlayerNetPack
3 years ago
staphen
c2814088d2
Add fields to PlayerNetPack for validation
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
Gleb Mazovetskiy
4fa3732526
Add missing <cstdint> includes
...
Done with the following script:
```ruby
Dir["Source/**/*.{h,c,cc,cpp,hpp}"].each do |path|
v = File.read(path)
next if !v.include?("uint32_t") || v.include?("cstdint")
lines = v.lines
line_num = if lines[2].start_with?(" *")
lines.index { |l| l.start_with?(" */") } + 3
else
3
end
lines.insert(line_num, "#include <cstdint>\n")
File.write(path, lines.join(""))
end
```
then fixed-up manually
3 years ago
obligaron
1522dc7031
Multiplayer: Add arena potions
3 years ago
Eric Robinson
f75f66d54b
Add `playerdat` ( #5763 )
3 years ago
Gleb Mazovetskiy
cea6a01de7
More item packing fix on big-endian
...
Refs #5573
3 years ago
Gleb Mazovetskiy
ac26f3a23b
Item: Optimize to save 16 bytes (312->288)
3 years ago
staphen
73028ec04a
Define network struct for ears
4 years ago
obligaron
b3aa08589b
Don't use MyPlayer in UnPackItem and dependend methods
4 years ago
Mikołaj Piróg
dda0b96ea5
Remove #defines in player.h and add constexpr where applicable ( #4896 )
...
* Change defines to constexpr int in player.h
* Add const or constexpr to player.h/cpp where applicable
* Update tests with changed names of player constatns
* remove unecessary variable
4 years ago
obligaron
d0c14fe92f
Introduce Player::setlevel
4 years ago
staphen
a2fe3a981e
Fix issues with ears due to translation
4 years ago
ephphatha
64a2c41b2c
Set clang-tidy config for MethodCase option
...
Previously this was falling back to FunctionCase, leading to inconsistent casing of class methods throughout the codebase. Applied to Item as an example.
4 years ago
DakkJaniels
dad46e1905
Item special effect enum ( #4129 )
4 years ago
ephphatha
7e7798fd2b
Add function to mark an item as empty
4 years ago
qndel
81800e64bb
MAXCHARLEVEL cleanup
4 years ago
staphen
b85485b8f3
Resolve game crash when syncing Diablo items in Hellfire games
4 years ago
Anders Jenbo
af08a99691
Perform item requirement check when entering vendors
4 years ago
Andrew James
4a940b1b07
Remove uses of Items[] as a temporary for other Item variables ( #2924 )
4 years ago
Anders Jenbo
6e63354cd1
Remove safe guards around strings own the input for
4 years ago
Anders Jenbo
799f1763af
Performce UTF8 aware limited string copies
4 years ago
Anders Jenbo
b4f699f0a3
Validate item network messages
4 years ago
Anders Jenbo
a56452eec3
Validate player sync
4 years ago
Anders Jenbo
0c5bdf5dbf
🐛 Reject items that would cause an OOB to
5 years ago
Juliano Leal Goncalves
379a27b64a
♻️ Convert 'ItemType' enum to enum class
...
🎨 Rename 'ItemType' elements to enum class standards
5 years ago
Sid672
a12a7511a9
Functional documentation moved
5 years ago
ephphatha
8ab229e7e8
LoadItemData by reference
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
Juliano Leal Goncalves
28134d099c
🚚 Rename 'PkPlayerStruct' to 'PlayerPack'
5 years ago
Juliano Leal Goncalves
bbf529c65a
🚚 Rename 'PlayerStruct' to 'Player'
5 years ago
Anders Jenbo
4044fadeb5
Clean up some players references
5 years ago
BC Ko
4df798808e
2435 refactor global variable Items part 2 ( #2673 )
5 years ago
qndel
3dbc120320
optimized packing/unpacking inventory items ( #2610 )
5 years ago
Anders Jenbo
f0a7a5c989
🎨 Apply code style
5 years ago
Anders Jenbo
069249f318
🚚 Move local function to anonymous namespace i-p
5 years ago
Anders Jenbo
96bf75b502
Rename player globals
5 years ago
Anders Jenbo
c8870dbd1f
Rename item globals
5 years ago