Commit Graph
504 Commits
Author SHA1 Message Date
Anders Jenbo 77f15d4e9c 🎨 Use semantic element 2021-04-21 20:09:32 +02:00
qndel 6be6499631 fix secluded crash (#1635) 2021-04-21 19:06:07 +02:00
Jmgr 1d84156509 Simplify bitshift divisions/multiplications 2021-04-21 05:31:17 +02:00
qndel ec74917cb4 class sounds cleanup 2021-04-20 23:35:16 +02:00
Anders Jenbo 0bf3516be2 🎨 Revert use of range loops on 2D arrays 2021-04-20 19:39:38 +02:00
Anders Jenbo 373f28736f 🎨 Acceptable parts of modernize-* 2021-04-19 22:42:19 +02:00
Anders Jenbo bb4e1960e7 🎨 modernize-use-nullptr 2021-04-19 16:02:05 +02:00
Xadhoom bf908da5bc Add option to disable clicking on character crippling shrines 2021-04-19 12:22:44 +02:00
Anders Jenbo c89bd9c001 🚨 Fix remaning warnings for clang and gcc 2021-04-19 02:44:39 +02:00
thebigMuh 48397a0cb9 Fixes solar shrine times to not be off by 1 hour, and fixes hole between 4 and 5 am 2021-04-18 23:33:24 +02:00
Anders Jenbo 61d15e23db 🎨 Apply direction enum to monsters and relations
Missiles _mimfnum is being used for a lot more then just directions and
can also be a 16 degree direction so can't apply enum verbs and
restricitons to it in most cases. This in turns also affects SetMissDir
and some other functions that have to stay int.
2021-04-18 23:13:03 +02:00
staphen 4faf09c2df Consolidate logic for Mana Shield and player damage. 2021-04-18 21:12:16 +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
qndel 7cc64dd2c4 fix double zhar aggro message 2021-04-15 17:07:44 +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
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
Anders Jenbo 224f06ca03 Split up OperateShrine (#1459) 2021-04-10 19:29:26 +02:00
Anders Jenbo 9d037bafff 🚨 Fix remaning clang warnings 2021-04-10 12:21:21 +02:00
Anders Jenbo 61244c4d93 ♻️ Rearange and apply more enums 2021-04-10 05:24:01 +02:00
Anders Jenbo 4f8b5e2f5f 🎨 Correct style of true comparisons 2021-04-09 15:13:02 +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
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
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
Anders Jenbo 6f1498d315 🚚 Move structures to there respective headers 2021-04-06 12:41:00 +02:00
Anders Jenbo 81934158c9 💚 Add missing headers 2021-04-04 06:02:16 +02:00
Anders Jenbo 97716c26ec 🐛 Update xp bar when gaining xp 2021-04-04 05:57:59 +02:00
Anders Jenbo ca2c2ba5e7 🚨 Handle a bunch of warnings from CLang 2021-03-29 06:26:31 +02:00
Anders Jenbo aebf629e16 🐛 Sync special tiles for L2 doors
This fixes missing door frames after loading a save game
2021-03-29 04:36:17 +02:00
Anders Jenbo ce0c323ed3 [Diablo] 🐛 Fix double rendering or door frames in Catacombs 2021-03-26 05:13:08 +01:00
Anders Jenbo 3945e79426 [Diablo] 🐛 Rest dSpecial when closing L1 doors
Fixes #1275

This bug is only visible with the improved transparancy. But would have
been a slight performance hit originally.
2021-03-26 02:06:00 +01:00
Anders Jenbo 1d537e0a93 🚨 Add missing cases to most switches 2021-03-20 20:39:28 +01:00
Anders Jenbo 31467cc949 ♻️ Remove all usage of basic WIN32 types
Note that several WinAPI types are still in use (misc.h)
2021-03-20 20:39:28 +01:00
Anders Jenbo 17803d5923 ♻️ Apply proper types to PlayerStruct 2021-03-14 15:38:23 +01:00
Anders Jenbo 8b8caf5a7e 🐛 Fix quests not activating on Windows
Compare _uniqtype instead mName
Fixes #1152
2021-03-13 09:09:47 +01:00
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.
2021-03-11 01:40:13 +01:00
Anders Jenbo 783e4a70b1 ♻️ Strongly type items structures 2021-03-06 10:04:07 +01:00
Juliano Leal Goncalves 37466890e0 ♻️ Extract 'ItemStruct.isEmpty()' function 2021-03-05 03:52:11 +01:00
Anders Jenbo f87bc0ca8b Clea up some duplicate item code 2021-02-27 23:04:06 +01:00
Anders Jenbo 70ca20b59f Clean up Hellfire special cases 2021-02-25 05:50:24 +01:00
pionere 486be4efeb use defs instead of constants 2021-02-20 00:39:31 +01:00
pionere 3137d0c0cf use pnum instead of myplr in bone chamber (#835) 2021-02-19 15:10:32 +01:00
Anders Jenbo 60d3e9ceb1 Clean up rendering 2021-02-19 03:05:12 +01:00