Juliano Leal Goncalves
e33ea53086
♻️ Pass ItemStruct on inv AutoGetItem function
5 years ago
Juliano Leal Goncalves
3b015085de
♻️ Pass ItemStruct on item RespawnItem function
5 years ago
Juliano Leal Goncalves
b5a89578f0
♻️ Pass ItemStruct on inv InvGetItem function
5 years ago
Gleb Mazovetskiy
da7567f06e
InitPlrGfx: Only alloc enough for the class
...
Previously, the allocation size was the maximum size over all the classes.
RAM usage per player:
* Before: 2.2 MiB (any class)
* After:
* Warrior: 2.0 MiB
* Rogue: 1.5 MiB
* Sorcerer: 1.6 MiB
* Monk: 1.7 MiB
We now also only allocate memory in multi-player as needed.
This means the game will only use as much RAM for player graphics
as there are players currently in the game.
Less RAM is used for each player because class is now taken into account.
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
630e507f63
🚚 Apply namespace
5 years ago
Juliano Leal Goncalves
9021f8daa5
♻️ Pluralize global 'item' array variable
5 years ago
Anders Jenbo
81934158c9
💚 Add missing headers
5 years ago
Anders Jenbo
97716c26ec
🐛 Update xp bar when gaining xp
5 years ago
Anders Jenbo
bba73ea20f
✨ Handle mixed item origins in multiplayer
5 years ago
Anders Jenbo
ca2c2ba5e7
🚨 Handle a bunch of warnings from CLang
5 years ago
Anders Jenbo
fbd86cd3c5
🎨 Mark noreturn functions as such
5 years ago
Anders Jenbo
a69a76941e
♻️ Clean up InitCutscene
5 years ago
Anders Jenbo
8f09cc3034
[diablo] 🐛 Correct spelling of Sorcerer
...
Fixes #1074
5 years ago
Anders Jenbo
17803d5923
♻️ Apply proper types to PlayerStruct
5 years ago
Andi
7368778cb2
Remove items dropping before entering level ( #1010 )
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
f87bc0ca8b
Clea up some duplicate item code
5 years ago
pionere
f5c1079d6f
eliminate unused code
5 years ago
pionere
d5a0fa8e85
get rid of a few warnings
5 years ago
qndel
ab9911064f
unify checks for single and multiplayer
5 years ago
qndel
c0f5749728
Fix RNG diverging during level generation depending on the code path
...
The consequences has mostly mitigated after wards, but this will make things make more sens when analysing the state of the code.
5 years ago
Anders Jenbo
9c0bc202c8
Fix additional wrong checks for monsters lights
5 years ago
Anders Jenbo
247d7497ce
Unify item sync code
5 years ago
Anders Jenbo
3d93478a6c
Some additional clean up
5 years ago
Anders Jenbo
c3b4b5193f
Unify a chunk of Hellfire code
5 years ago
Anders Jenbo
dcb8bc8c2c
Unify majority of netcode
5 years ago
Anders Jenbo
869c490715
[hellfire] NetSendCmdGItem
5 years ago
Anders Jenbo
64be0eb0db
Make error message more informative
5 years ago
Anders Jenbo
8c261d0966
Merge remaning clean Hellfire code paths
5 years ago
qndel
7f7ae623df
Goe ( #2163 )
...
* proper random_ comparisons
* proper mienemy comparisons
* add mienemy/micaster enum
* GOE enum
5 years ago
Anders Jenbo
38dbcf7641
Format source
5 years ago
qndel
0947ede2fe
Cleanup11 ( #2156 )
5 years ago
qndel
6ade48e855
msg.cpp cleanup
5 years ago
qndel
0bd8b2b664
2 functions
5 years ago
qndel
6e2873c3fb
msg.cpp functions bin exact
5 years ago
SourceCodeDeleted
e5c2744b83
[hellfire] NetSendCmdGItem2 binexact ( #2148 )
...
* [hellfire] NetSendCmdGItem2 binexact
5 years ago
Anders Jenbo
75a14114bb
Reorder msg.cpp
5 years ago
qndel
1b18927bf2
fix multi quest bug
5 years ago
qndel
e31a7bc22e
enums and cleanups
5 years ago
qndel
fb81425ac6
some magic numbers cleanup
5 years ago
qndel
aa9a938665
DeltaAddItem
5 years ago
qndel
51ca45e0d6
On_SPELLXYD cleanup ( #2130 )
5 years ago
qndel
4fa00f9079
DeltaImportData bin exact and cleanup
5 years ago
qndel
2d6f5d09b8
delta_get_item cleanup
5 years ago
qndel
7dde42c89e
On_SBSPELL cleanup
5 years ago
qndel
b81d2eb831
some cleanups ( #2099 )
6 years ago
qndel
b0142637b7
Ear cleanup #2 ( #2100 )
6 years ago
Anders Jenbo
8272a37aea
Add connection state and player state enums
6 years ago
qndel
166029c95b
apply enums
6 years ago