Commit graph

558 commits

Author SHA1 Message Date
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
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
83e783a796 🔥 Remove ITYPE_FOOD (unused) 2021-03-20 20:39:28 +01:00
Gleb Mazovetskiy
70d1d633bd Get rid of SCREEN_X / SCREEN_Y
GlobalOutputBuffer() now returns a clipped subregion
2021-03-17 23:37:58 +01:00
Anders Jenbo
17803d5923 ♻️ Apply proper types to PlayerStruct 2021-03-14 15:38:23 +01:00
Anders Jenbo
2e3bb9206d 🐛 Fix uninitialized values for items generated in a loop
Fixes #1121
2021-03-14 14:58:38 +01:00
Anders Jenbo
14074608be 🐛 Correct requirement line in stores
Fixes #1167
2021-03-13 09:19:58 +01:00
Gleb Mazovetskiy
cd59a1c323 Completely replace gpBuffer with CelOutputBuffer
`CelOutputBuffer` now contains an `SDL_Surface` and an `SDL_Rect`.

We now have access to SDL surface manipulation functions.

`gpBuffer` and `gpBufEnd` are completely gone 🧹

This results in some FPS loss (250 -> 195) recovered in a subsequent
commit.
2021-03-13 05:13:26 +01:00
Gleb Mazovetskiy
d7a599a506 Migrate DrawULine away from gpBuffer
Also applies a bugfix
2021-03-13 02:26:11 +01:00
Anders Jenbo
ede55e0914 ♻️ Document variables in stores.cpp
This also fixes OOB when buying all items in a list
2021-03-12 07:14:44 +01:00
Anders Jenbo
783e4a70b1 ♻️ Strongly type items structures 2021-03-06 10:04:07 +01:00
Anders Jenbo
e280432b92 🚨 Fix all SDL1 warnings 2021-03-06 05:56:47 +01:00
Juliano Leal Goncalves
37466890e0 ♻️ Extract 'ItemStruct.isEmpty()' function 2021-03-05 03:52:11 +01:00
Anders Jenbo
037ef082b4 🐛 Correct position of dialog backgrounds
Fixes #1098
2021-03-03 20:08:14 +01:00
Gleb Mazovetskiy
d55a1c8a7d
Pass CelOutputBuffer to game text printing (#1095)
* Pass CelOutputBuffer to game text printing
* DrawHalfTransparentRectTo: minor cleanup
2021-03-03 18:20:24 +01:00
Gleb Mazovetskiy
83ce7c27af Enginify trans_rect
Moves `trans_rect` to `engine` as `DrawHalfTransparentRectTo` and makes
it operate on `CelOutputBuf`.
2021-03-03 12:07:07 +01:00