Juliano Leal Goncalves
bb61dfc68b
♻️ Reuse 'AutoPlaceItemInBelt' inside 'StoreAutoPlace'
5 years ago
Juliano Leal Goncalves
0b8a35f4b0
🔥 Remove now useless 'SpecialAutoPlace' function
5 years ago
Juliano Leal Goncalves
cae4461c39
♻️ Reuse existing functions in place of 'SpecialAutoPlace'
5 years ago
Juliano Leal Goncalves
7430109f7e
💡 Add proper comments to 'AutoPlaceItemInInventorySlot'
5 years ago
Juliano Leal Goncalves
1bc44bc969
🎨 Rename 'AutoPlaceItemInInventorySlot' arguments for readability/consistency
5 years ago
Juliano Leal Goncalves
462acd9422
♻️ Replace 'BOOL' macro with 'bool' type on 'AutoPlaceItemInInventorySlot'
5 years ago
Juliano Leal Goncalves
1c15e244b2
🚚 Rename 'AutoPlace' to 'AutoPlaceItemInInventorySlot'
5 years ago
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
Juliano Leal Goncalves
01606ea4df
♻️ Pass ItemStruct on inv CleanupItems function
5 years ago
Juliano Leal Goncalves
8e22f3a056
♻️ Pass ItemStruct on inv AutoPlace 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
Gleb Mazovetskiy
01574de6a8
Simplify InitPlrGfx
...
It was tracking each type of graphics individually but they're always
initialized together.
5 years ago
Anders Jenbo
433edc63ea
♻️ Consistently use pragma once to guard the headers
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
630e507f63
🚚 Apply namespace
5 years ago
Gleb Mazovetskiy
87dcbcb6d7
Save 1.5 MiB RAM in-game by freeing more DiabloUI art
5 years ago
Anders Jenbo
6f1498d315
🚚 Move structures to there respective headers
5 years ago
Anders Jenbo
bc3dc545da
🔥 Remove unused parts of game creation logic
5 years ago
Anders Jenbo
501c536017
🎨 Clean up appfat
5 years ago
Anders Jenbo
0953b3524e
🚨 Resolve monster.cpp clang warnings
5 years ago
Juliano Leal Goncalves
9021f8daa5
♻️ Pluralize global 'item' array variable
5 years ago
Yuri Pourre
929e9aaefb
Add healer's missing transcriptions ( #1212 )
5 years ago
Gleb Mazovetskiy
9dd91d1c2c
Save 1.3 MiB RAM in-game by freeing menu resources
...
Running with a memory profiler revealed that we were keeping main menu
UI resources around while the game was running.
5 years ago
Gleb Mazovetskiy
21a4a671e4
Cleanup DiabloAllocPtr
...
1. Removes a lock around allocation. `malloc` is required to be thread-safe in C11.
2. Defines it as a macro so that:
1. We provide the correct location for the OOM error.
2. We get better attribution from memory profilers.
5 years ago
Anders Jenbo
28bb003601
🐛 use exact size of save format struct
5 years ago
Anders Jenbo
69b11edace
[hellfire] 🐛 Apply the zen fix
...
Going over the change history of Hellfire and Diablo appears that the
difference was an early version of the fix from patch 1.07
5 years ago
Anders Jenbo
70776b87c8
🐛 Only save when performing a direct exit from game
5 years ago
Anders Jenbo
81934158c9
💚 Add missing headers
5 years ago
Anders Jenbo
97716c26ec
🐛 Update xp bar when gaining xp
5 years ago
Juliano Leal Goncalves
bcf63dfc1a
🐛 Allow shift+click to equip weapons on monk
5 years ago
Juliano Leal Goncalves
b9fdf02925
🐛 Spend only needed points when shift+clicking stats
...
When the stat points needed to reach a given attribute's cap is less
than the total amount of points remaining to distribute, only the
necessary points will be spent now, leaving the rest to be spent on
other attributes.
5 years ago
Juliano Leal Goncalves
bb2efe03e3
♻️ Use 'PlayerStruct' references in 'ReleaseChrBtns' function
5 years ago
qndel
3501af6647
fix spinner
5 years ago
FluffyQuack
c0f57f3020
🐮 Draw outline for color in index 0 for inventory icons. ( #1318 )
5 years ago
Gleb Mazovetskiy
793c478899
Allow Bard starting items in `--diablo`
...
Fixes #1324
5 years ago
Gleb Mazovetskiy
0f3951744f
diablo.ini: Rename "Fast Walk" to "Run in Town" ( #1326 )
5 years ago
Anders Jenbo
29179d85b6
[diablo] 🐛 Fix missing doors in Halls of The Blind
...
Doors are suppose to be the first thing to be spawned to not risk
running out of objects for the level. But with blind2.dun the doors are
not present, only when switching to blind1.dun would they get spawned,
but quite a few maps have already used up the object limit at that
point.
Fixes #1320
Fixes #113
5 years ago
Anders Jenbo
497f6d766f
🐛 Correctly center pause text
5 years ago
qndel
461de17884
fix typo ( #1316 )
5 years ago
Anders Jenbo
bba73ea20f
✨ Handle mixed item origins in multiplayer
5 years ago
Anders Jenbo
c221cdfeb1
🐛 Correct sinage on level load/save
5 years ago
Anders Jenbo
d526840fd5
🎨 Remove hardcoded version number
5 years ago
Anders Jenbo
7c2f96f668
🐛 Always save MP games when quitting
5 years ago
Anders Jenbo
7965c03606
🎨 Swap more BOOL for bool
5 years ago
Anders Jenbo
edffe223df
🐛 Only save options if they where also loaded
5 years ago
Anders Jenbo
fd64193208
🐛 Implement missing Hellfire arrow types
5 years ago
Anders Jenbo
a2656637e4
🎨 Format source
5 years ago
FluffyQuack
489a32d19a
🐮 Minor typo fixes for options struct
5 years ago