Juliano Leal Goncalves
f8871aab07
♻️ Unify most valuable player item logic on new method
5 years ago
qndel
d8444ed695
Clean DrawInvBelt + outline colors
...
* fix right hand items
5 years ago
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
Anders Jenbo
f450d6a125
🚚 Move defines to there proper files
5 years ago
obligaron
f2c7446134
bugfix idle animation after equipping/unequipping
5 years ago
Yuri Pourre
ed1ddfdece
Exposes player id from multi_send_packet
5 years ago
Juliano Leal Goncalves
cc5f2a8f49
🎨 Rename 'attribute_id' enum to 'CharacterAttribute'
...
Members were renamed as well for readability.
5 years ago
Juliano Leal Goncalves
f54cc5aa95
♻️ Convert 'attribute_id' to a scoped enumeration
5 years ago
Juliano Leal Goncalves
8cf972e843
♻️ Move 'HeroClass::ClassCount' to external tracking template
...
This eliminates the problem where the compiler complains we are not handling all enumeration values by moving the "hack" counting member into somewhere else external to the enum.
5 years ago
obligaron
c7b9ffec1f
Decouple Animations from Gamelogi (Smooth Animations for skipped Frames).
...
NewPlrAnim: Use default arguments instead of overloads
StartPlrHit: Fix skippedAnimationFrames - Frames starts with 1
Add missing comment for StartPlrHit
Fix GotHit-Animation: Skipping Frames corrected and adjusted _pAnimGameTicksSinceSequenceStarted for animations that don't start with a additional tick.
Thanks @StephenCWills for the gothit skipping frame calculation logic :-)
Update StartWalk: calculated numSkippedFrames in own line.
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
StartPlrHit: always initialize skippedAnimationFrames
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
Update nthread_GetProgressToNextGameTick comment
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
fix spelling "lenght" instead of "length"
Update NewPlrAnim comment
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
GetFrameToUseForPlayerRendering: avoid one "else"
5 years ago
Juliano Leal Goncalves
28ad9d43c5
🎨 Rename 'plr_class' enum to 'HeroClass'
...
Members were renamed as well for readability.
5 years ago
Juliano Leal Goncalves
7d95bfed39
♻️ Convert 'plr_class' to a scoped enumeration
5 years ago
qndel
25095b2ee6
fix uninitialized
5 years ago
qndel
8dbdc9c315
fix wirt price bug
5 years ago
qndel
adacce3303
fix wirt
5 years ago
qndel
1907b11cee
fix vanilla premium items going over 140k
5 years ago
qndel
a69c1ceebf
fix wirt price bug
5 years ago
qndel
99de12dfd8
fix wirt + some code cleanup
5 years ago
qndel
516fc4e83d
fix vanilla premium items going over 140k
5 years ago
Anders Jenbo
819fd40376
🎨 Consistent enum value style ( #1458 )
5 years ago
Anders Jenbo
e7ae8ddd04
🚚 Move all enums to there respective headers
5 years ago
Anders Jenbo
2732aea1b2
♻️ Use GameInfo instead of individual globals
5 years ago
Anders Jenbo
61244c4d93
♻️ Rearange and apply more enums
5 years ago
Anders Jenbo
20186e0370
🎨 Replace TRUE/FALSE with true/false
...
fix
Fix
fix
5 years ago
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
5 years ago
Anders Jenbo
4ee84aea1a
♻️ Change BOOLEAN to bool
...
fixup BOOLEAN
5 years ago
qndel
b845f2d8f2
small griswold cleanup ( #1440 )
5 years ago
Gleb Mazovetskiy
461da3cda0
Optimize ItemStruct sizeof: 360 -> 296
...
Can likely be optimized further
5 years ago
Anders Jenbo
b1ffdca0a3
♻️ make better use of enums
5 years ago
Anders Jenbo
af96de4038
♻️ Move a large part of enums to there respective headers
5 years ago
Juliano Leal Goncalves
25db7743dd
♻️ Reuse 'player.GetMaximumAttributeValue' for max stats
5 years ago
Juliano Leal Goncalves
b9e19fe84f
♻️ Simplify adding items to inventory by reusing 'AutoPlaceItemInInventory'
5 years ago
Juliano Leal Goncalves
1c15e244b2
🚚 Rename 'AutoPlace' to 'AutoPlaceItemInInventorySlot'
5 years ago
Juliano Leal Goncalves
3b015085de
♻️ Pass ItemStruct on item RespawnItem function
5 years ago
Juliano Leal Goncalves
8e22f3a056
♻️ Pass ItemStruct on inv AutoPlace function
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
Gleb Mazovetskiy
793c478899
Allow Bard starting items in `--diablo`
...
Fixes #1324
5 years ago
Anders Jenbo
bba73ea20f
✨ Handle mixed item origins in multiplayer
5 years ago
Anders Jenbo
a9a14f74de
🚨 Fix a couple of clang warnings
5 years ago
Anders Jenbo
c659afa9d6
🐛 [hellfire] Fix "0 gold" sometimes spawning on the corner stone
5 years ago
Anders Jenbo
e7377c37ae
🎨 Use proper types for checks in RecreateItem
5 years ago
Anders Jenbo
331a540fc3
🔥 Remove the auricGold variable
5 years ago
Anders Jenbo
bb7d0368d0
🐛 Correctly initialize empty objects
5 years ago
Martin Wolters
9b50a69ac2
Bugfix: auricGold shouldn\'t determine MaxGold.
5 years ago
Anders Jenbo
2362ff82f7
✨ Add black text color
5 years ago
Juliano Leal Goncalves
800dbce066
♻️ Move options-related structs to new 'options.h' file
5 years ago
Anders Jenbo
f2140688e7
Load and save all ini values the same way ( #1260 )
5 years ago
Anders Jenbo
839940df68
🏷️ Add enum as the type for power in SaveItemPower
5 years ago