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
qndel
76b8aca1c4
remove unique item line from shops
2021-04-17 23:42:46 +02:00
qndel
2302ee27aa
make unique items display gold in stores
2021-04-16 17:27:51 +02:00
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
2021-04-16 01:04:54 +02:00
Austin Wagner
c46d31c993
Fix manual gold stacking when max is modified
...
Affects dragging and dropping gold in inventory and gaining gold via
purchases when the Auric Amulet is equipped
2021-04-12 10:41:11 +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
Juliano Leal Goncalves
1c1cf41eae
🔥 Remove unnecessary cursor-related logic in StoreAutoPlace
2021-04-07 18:34:02 +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
da18b0f97b
♻️ Reuse 'AutoPlaceItemInInventory' inside 'StoreAutoPlace'
2021-04-07 18:34:02 +02:00
Juliano Leal Goncalves
bb61dfc68b
♻️ Reuse 'AutoPlaceItemInBelt' inside 'StoreAutoPlace'
2021-04-07 18:34:02 +02:00
Juliano Leal Goncalves
cae4461c39
♻️ Reuse existing functions in place of 'SpecialAutoPlace'
2021-04-07 18:34:02 +02:00
Juliano Leal Goncalves
462acd9422
♻️ Replace 'BOOL' macro with 'bool' type on 'AutoPlaceItemInInventorySlot'
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
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
bcf63dfc1a
🐛 Allow shift+click to equip weapons on monk
2021-04-04 04:47:25 +02:00
Anders Jenbo
ca2c2ba5e7
🚨 Handle a bunch of warnings from CLang
2021-03-29 06:26:31 +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
1d537e0a93
🚨 Add missing cases to most switches
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
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
fd70879577
Migrate DrawSLine away from gpBuffer
...
Also applies bugfix
2021-03-13 02:26:11 +01:00
Anders Jenbo
e7ec90932a
💚 Expose AddStoreHoldRepair to the tests
2021-03-12 09:10:41 +01:00
Juliano Leal Goncalves
95ae8fd5c6
✨ Autoequip items on purchase
2021-03-12 07:19:55 +01:00
Anders Jenbo
f16ebb349d
🐛 Fix broken text cursort after buying an item from Wirt
2021-03-12 07:15:06 +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
37bdeb74db
🐛 Fix overflow in Qtalklist
2021-03-12 03:39:46 +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
Juliano Leal Goncalves
103cde53ff
♻️ Make options struct hierarchical
2021-03-10 10:11:42 +01:00
Yuri Pourre
2351bb368d
QoL: Fill mana when speaking with Adria ( #1143 )
2021-03-09 23:17:25 +01:00
Gleb Mazovetskiy
b43325028f
Migrate CelDraw to CelDrawTo
2021-03-06 09:55:14 +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
Juliano Leal Goncalves
3de338e5b6
♻️ Pass item referece on SpecialAutoPlace
...
This simplifies and decouples the logic for determining the size of the
item from ambient variables and makes the function easier to use.
2021-02-28 02:22:33 +01:00
Juliano Leal Goncalves
c81a1efb55
Standardize colon alignment on text ( #816 )
2021-02-27 23:03:41 +01:00
Andi
df7ed584fd
biggest commit ever ( #1060 )
...
fixes leaving pepin
2021-02-26 18:52:40 +01:00
Anders Jenbo
f8f454c61d
[diablo] Automatiacally recive healing from Pepin
2021-02-25 05:50:24 +01:00
Anders Jenbo
36a196389b
Fix remaning basic compiler errors and warnings
2021-02-22 13:51:42 +01:00
pionere
f5c1079d6f
eliminate unused code
2021-02-19 22:04:11 +01:00
pionere
d5a0fa8e85
get rid of a few warnings
2021-02-19 22:04:11 +01:00
qndel
ab9911064f
unify checks for single and multiplayer
2021-02-18 22:32:01 +01:00
Anders Jenbo
c08a10e44b
Unify calculation of gold icon
2021-02-18 20:52:07 +01:00