Gleb Mazovetskiy
95946e3a7c
🧹 Cleanup unused variables ( #1584 )
...
Fixes `unused-variable` and `unused-but-set-variable` compiler warnings.
2021-04-18 18:15:47 +02:00
Juliano Leal Goncalves
f8871aab07
♻️ Unify most valuable player item logic on new method
2021-04-16 04:02:18 +02:00
qndel
d8444ed695
Clean DrawInvBelt + outline colors
...
* fix right hand items
2021-04-16 02:17:28 +02:00
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
2021-04-16 01:04:54 +02:00
Anders Jenbo
f450d6a125
🚚 Move defines to there proper files
2021-04-16 01:04:54 +02:00
obligaron
f2c7446134
bugfix idle animation after equipping/unequipping
2021-04-16 00:33:36 +02:00
Yuri Pourre
ed1ddfdece
Exposes player id from multi_send_packet
2021-04-14 17:36:31 +02:00
Juliano Leal Goncalves
cc5f2a8f49
🎨 Rename 'attribute_id' enum to 'CharacterAttribute'
...
Members were renamed as well for readability.
2021-04-13 03:02:14 +02:00
Juliano Leal Goncalves
f54cc5aa95
♻️ Convert 'attribute_id' to a scoped enumeration
2021-04-13 03:02:14 +02:00
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.
2021-04-12 20:55:33 +02:00
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"
2021-04-12 20:44:29 +02:00
Juliano Leal Goncalves
28ad9d43c5
🎨 Rename 'plr_class' enum to 'HeroClass'
...
Members were renamed as well for readability.
2021-04-12 20:00:53 +02:00
Juliano Leal Goncalves
7d95bfed39
♻️ Convert 'plr_class' to a scoped enumeration
2021-04-12 20:00:53 +02:00
qndel
25095b2ee6
fix uninitialized
2021-04-12 07:17:40 +02:00
qndel
a69c1ceebf
fix wirt price bug
2021-04-11 15:47:11 +02:00
qndel
99de12dfd8
fix wirt + some code cleanup
2021-04-11 15:47:11 +02:00
qndel
516fc4e83d
fix vanilla premium items going over 140k
2021-04-11 15:47:11 +02:00
Anders Jenbo
819fd40376
🎨 Consistent enum value style ( #1458 )
2021-04-10 17:09:41 +02:00
Anders Jenbo
e7ae8ddd04
🚚 Move all enums to there respective headers
2021-04-10 16:30:00 +02:00
Anders Jenbo
2732aea1b2
♻️ Use GameInfo instead of individual globals
2021-04-10 07:30:12 +02:00
Anders Jenbo
61244c4d93
♻️ Rearange and apply more enums
2021-04-10 05:24:01 +02:00
Anders Jenbo
20186e0370
🎨 Replace TRUE/FALSE with true/false
...
fix
Fix
fix
2021-04-09 15:13:02 +02:00
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
2021-04-09 15:13:02 +02:00
Anders Jenbo
4ee84aea1a
♻️ Change BOOLEAN to bool
...
fixup BOOLEAN
2021-04-09 15:13:02 +02:00
qndel
b845f2d8f2
small griswold cleanup ( #1440 )
2021-04-09 10:48:43 +02:00
Gleb Mazovetskiy
461da3cda0
Optimize ItemStruct sizeof: 360 -> 296
...
Can likely be optimized further
2021-04-09 09:31:25 +02:00
Anders Jenbo
b1ffdca0a3
♻️ make better use of enums
2021-04-08 20:29:16 +02:00
Anders Jenbo
af96de4038
♻️ Move a large part of enums to there respective headers
2021-04-08 19:20:55 +02:00
Juliano Leal Goncalves
25db7743dd
♻️ Reuse 'player.GetMaximumAttributeValue' for max stats
2021-04-08 04:31:26 +02:00
Juliano Leal Goncalves
b9e19fe84f
♻️ Simplify adding items to inventory by reusing 'AutoPlaceItemInInventory'
2021-04-07 18:34:02 +02:00
Juliano Leal Goncalves
1c15e244b2
🚚 Rename 'AutoPlace' to 'AutoPlaceItemInInventorySlot'
2021-04-07 18:34:02 +02:00
Juliano Leal Goncalves
3b015085de
♻️ Pass ItemStruct on item RespawnItem function
2021-04-07 18:34:02 +02:00
Juliano Leal Goncalves
8e22f3a056
♻️ Pass ItemStruct on inv AutoPlace function
2021-04-07 18:34:02 +02:00
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
2021-04-06 15:21:25 +02:00
Anders Jenbo
630e507f63
🚚 Apply namespace
2021-04-06 15:21:25 +02:00
Juliano Leal Goncalves
9021f8daa5
♻️ Pluralize global 'item' array variable
2021-04-06 11:45:28 +02:00
Gleb Mazovetskiy
793c478899
Allow Bard starting items in --diablo
...
Fixes #1324
2021-04-03 03:36:16 +02:00
Anders Jenbo
bba73ea20f
✨ Handle mixed item origins in multiplayer
2021-04-01 14:52:44 +02:00
Anders Jenbo
a9a14f74de
🚨 Fix a couple of clang warnings
2021-03-30 07:33:43 +02:00
Anders Jenbo
c659afa9d6
🐛 [hellfire] Fix "0 gold" sometimes spawning on the corner stone
2021-03-30 05:05:52 +02:00
Anders Jenbo
e7377c37ae
🎨 Use proper types for checks in RecreateItem
2021-03-30 05:05:48 +02:00
Anders Jenbo
331a540fc3
🔥 Remove the auricGold variable
2021-03-29 02:22:07 +02:00
Anders Jenbo
bb7d0368d0
🐛 Correctly initialize empty objects
2021-03-29 02:19:01 +02:00
Martin Wolters
9b50a69ac2
Bugfix: auricGold shouldn\'t determine MaxGold.
2021-03-28 17:08:00 +02:00
Anders Jenbo
2362ff82f7
✨ Add black text color
2021-03-27 23:04:19 +01:00
Juliano Leal Goncalves
800dbce066
♻️ Move options-related structs to new 'options.h' file
2021-03-27 03:26:44 +01:00
Anders Jenbo
f2140688e7
Load and save all ini values the same way ( #1260 )
2021-03-24 04:25:23 +01:00
Anders Jenbo
839940df68
🏷️ Add enum as the type for power in SaveItemPower
2021-03-22 20:44:26 +01:00
Anders Jenbo
8f09cc3034
[diablo] 🐛 Correct spelling of Sorcerer
...
Fixes #1074
2021-03-21 12:18:10 +01:00
Anders Jenbo
38fdf34c14
💄 Apply code style
2021-03-20 20:39:28 +01:00