Anders Jenbo
b1ffdca0a3
♻️ make better use of enums
5 years ago
Juliano Leal Goncalves
30cd12c000
♻️ Eliminate global 'MaxStats' variable
5 years ago
Juliano Leal Goncalves
25db7743dd
♻️ Reuse 'player.GetMaximumAttributeValue' for max stats
5 years ago
Juliano Leal Goncalves
3b015085de
♻️ Pass ItemStruct on item RespawnItem 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
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
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
97716c26ec
🐛 Update xp bar when gaining xp
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
Gleb Mazovetskiy
0f3951744f
diablo.ini: Rename "Fast Walk" to "Run in Town" ( #1326 )
5 years ago
Anders Jenbo
bba73ea20f
✨ Handle mixed item origins in multiplayer
5 years ago
Anders Jenbo
fd64193208
🐛 Implement missing Hellfire arrow types
5 years ago
Anders Jenbo
331a540fc3
🔥 Remove the auricGold variable
5 years ago
Anders Jenbo
8196bdbd31
✨ Set the initial ready spell when creating a new hero
5 years ago
Juliano Leal Goncalves
800dbce066
♻️ Move options-related structs to new 'options.h' file
5 years ago
Anders Jenbo
fbd86cd3c5
🎨 Mark noreturn functions as such
5 years ago
Anders Jenbo
ac9ae2e062
🐛 Fix loading of sorceror graphics
...
This also detangles some of the hellfire wip classes and duplicate
tables
5 years ago
Anders Jenbo
8f09cc3034
[diablo] 🐛 Correct spelling of Sorcerer
...
Fixes #1074
5 years ago
Anders Jenbo
cc47080074
🐛 Correctly calculate the player _pDamageMod when creating a new hero
...
Fixes #140
5 years ago
Anders Jenbo
38fdf34c14
💄 Apply code style
5 years ago
Anders Jenbo
1d537e0a93
🚨 Add missing cases to most switches
5 years ago
Anders Jenbo
31467cc949
♻️ Remove all usage of basic WIN32 types
...
Note that several WinAPI types are still in use (misc.h)
5 years ago
Anders Jenbo
17803d5923
♻️ Apply proper types to PlayerStruct
5 years ago
Anders Jenbo
8e8e31627f
🐛 Only load hotkeys on new game
5 years ago
qndel
f80a0f9887
[diablo] 🐛 Update vision when walking
...
Previously areas of visibility would be left on the level despite the
player having moved away, especially prevelant if wearing items with low
visibility effect.
5 years ago
Anders Jenbo
def2253386
♻️ Move monster.h related structs and enums and apply propper types
5 years ago
Anders Jenbo
d6ec6395e0
♻️ change QuestTalkData in to an array of _speech_id
...
This gets rid of casting QuestTalkData to DWORD/int in various parts of
the code.
5 years ago
Juliano Leal Goncalves
103cde53ff
♻️ Make options struct hierarchical
5 years ago
qndel
2d055e3a2e
✨ Auto pickup gold
5 years ago
Anders Jenbo
dd73ff2cf0
🚩 Add option for disabeling frindly fire ( #1104 )
5 years ago
Juliano Leal Goncalves
37466890e0
♻️ Extract 'ItemStruct.isEmpty()' function
5 years ago
Robin Eklind
66ee4221c9
player: add BUGFIX for missing lighting town check in StartWalk2
5 years ago
Anders Jenbo
39999791b3
Revamp ini options and sync in multiplayer
...
[NetMsg]
F12=Now you DIE!
F11=Here's something for you.
F10=Follow me.
F9=I need help! Come Here!
[Game]
Speed=50
Fast Walk=1
Grab Input=0
Theo Quest=0
Cow Quest=0
[Audio]
Sound Volume=0
Music Volume=0
Walking Sound=1
[Graphics]
Fullscreen=1
Fit to Screen=1
Scaling Quality=2
Integer Scaling=0
Vertical Sync=1
Blended Transparency=1
Gamma Correction=100
Color Cycling=1
[Diablo]
Intro=0
[Hellfire]
Intro=0
SItem=
[Phone Book]
Entry1=127.0.0.1
[Network]
Bind Address=0.0.0.0
5 years ago
Anders Jenbo
f87bc0ca8b
Clea up some duplicate item code
5 years ago
Anders Jenbo
70ca20b59f
Clean up Hellfire special cases
5 years ago
Anders Jenbo
b4e78c5e79
Remove some unused junk
5 years ago
pionere
e240dcd606
code cleanup using std::max
5 years ago
pionere
f5c1079d6f
eliminate unused code
5 years ago
Anders Jenbo
60d3e9ceb1
Clean up rendering
5 years ago
Anders Jenbo
480792c53b
[hellfire] Fix new gold piles having the wrong graphics
5 years ago
qndel
ab9911064f
unify checks for single and multiplayer
5 years ago
Anders Jenbo
7d39c4c9d1
Remove checks for duplicate items
...
- We fixed the normal way of duplicating items.
- Legit items can be seen as duplicates in some instances.
- It doesn't fix the issue since the player has to drop both for it to
trigger.
5 years ago
pionere
f22907e2e6
remove unnecessary (and wrong) stat value checks
5 years ago
qndel
8186d9f174
update damage after leveling up ( #1002 )
5 years ago
FluffyQuack
e7486163af
Refactored StartWalk(), StartWalk2(), and StartWalk3() into one function, and added some comments.
5 years ago
FluffyQuack
007b5a576c
Refactored DoWalk(), DoWalk2(), and DoWalk3() into one function and added comments.
5 years ago
qndel
6788d6a351
fix knockback light
5 years ago