Commit graph

491 commits

Author SHA1 Message Date
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
qndel
ab9911064f unify checks for single and multiplayer 2021-02-18 22:32:01 +01:00
galaxyhaxz
b64beca78b Several quest fixes 2021-02-13 02:01:24 +01:00
qndel
c0f5749728 Fix RNG diverging during level generation depending on the code path
The consequences has mostly mitigated after wards, but this will make things make more sens when analysing the state of the code.
2021-02-01 06:44:16 +01:00
Anders Jenbo
93b82e3b7a Fix regression of static lights from fix of dynamic ones
This issue was introduced in 1f532040a8
2021-01-31 14:00:22 +01:00
Anders Jenbo
7313b10cfa Fix Archbishop Lazarus entering a broken state when taking the teleport again
Fixes #889
2021-01-31 07:38:43 +01:00
Anders Jenbo
a1281d8b54 [hellfire] Fix bugs related to using the wrong player index
- Firewall damage was incorrect for player 0 (host or single player)
- Town Shrine would always cast TP from the host instead of the user
- Oily Shrine and Sparkling Shrine would cast there traps as player 0
- The farmer would always think he was talking to the local player
2021-01-23 19:10:15 +01:00
Anders Jenbo
46e73d3d89 Merge branch 'master' of github.com:diasurgical/devilution 2021-01-23 03:51:31 +01:00
Anders Jenbo
b6a5a413e7 Fix lvl3 door appearing wrong when opened by other players 2021-01-23 03:50:32 +01:00
Anders Jenbo
ed825ba102 Apply bugfix to SHRINE_ENCHANTED 2021-01-09 19:37:21 +01:00
Anders Jenbo
f9aacc8704 Merge branch 'master' of github.com:diasurgical/devilution 2021-01-09 19:36:09 +01:00
Anders Jenbo
8c261d0966 Merge remaning clean Hellfire code paths 2021-01-09 19:04:31 +01:00
Anders Jenbo
c7b32ec4e4 Clean ups 2021-01-08 21:23:00 +01:00
Anders Jenbo
0c96e32f19 Unify all defines, enums and structs 2021-01-08 20:53:06 +01:00