Eric Robinson
e303a82b1c
Floating Item Info Box ( #8000 )
7 months ago
Eric Robinson
3aaa414f07
Draw Hotkeys on Belt ( #7911 )
11 months ago
chasedjones88
b47d97f14c
Rebase of #7876 - Shift item order when selling to keep consistent window order ( #7886 )
...
* Shift item order when selling instead of using last item to fill the slot
Player has items i1, i2, i3, picked up in that order.
Previous Behavior:
1. Sell window at vendor shows i1, i2, i3.
2. Player sells i1
3. i3 is last in list and replaces i1
4. Sell window now shows i3, i2.
New Behavior:
1. Sell window at vendor shows i1, i2, i3.
2. Player sells i1
3. i2/i3 are shifted in index position down to fill the gap left by previous index.
4. Sell window now shows i2, i3.
* Remove whitespace
12 months ago
Andrew James
b72327b972
Play the sound of the item we're pasting, not what we picked up
12 months ago
Yggdrasill
176819a072
Make RecreateItem() take whole dwBuff flag as argument ( #7870 )
1 year ago
Eric Robinson
8eddf55c3f
Stores - IsPlayerInStore() ( #7843 )
1 year ago
Eric Robinson
173c662723
Remove CalcPlrStaff()
1 year ago
Gleb Mazovetskiy
ee16071761
Untangle pathfinding dependencies
...
1. Makes `path.cpp` concerned solely with the pathfinding algorithm.
2. Turns `path_test` into a standalone test.
1 year ago
Gleb Mazovetskiy
3bb1d685af
Extract current input mode into its own library
...
Removes a transitive dependency on the entire plrctrl from options.
1 year ago
Gleb Mazovetskiy
d94bc424df
`sgOptions` -> `GetOptions()`
...
In C++, globals initialization order accross translation units is not
defined. Accessing a global via a function ensures that it is initialized.
This will be needed for #7638 , which will statically initialize change
handlers after the Options object has been initialized.
1 year ago
Gleb Mazovetskiy
a49b1f2d58
Extract Is{Any,None}Of out of engine.hpp
...
Untangles some of the dependencies
1 year ago
Andrew James
5758e561fd
allow auto-equipping two-handed weapons with both hands occupied
...
specifically where the larger item is in the right hand, this would fail previously in certain circumstances.
1 year ago
Andrew James
1b32872db2
Shuffle items around when auto-equipping so less inv space is required
1 year ago
Andrew James
a8ca96452a
Only use holditem if we're actually picking the item to hand
1 year ago
Andrew James
b19f2e80ce
Move anonymous namespace functions to the top of the file
1 year ago
Andrew James
c7abf2f778
Extract logic from CheckInvCut/AutoPlaceItemInInventory ( #7494 )
...
* Remove unnecessary namespace
* Extract FindSlotUnderCursor
* Split logic for finding a space in the inventory to dedicated functions
1 year ago
Andrew James
59471f0828
Remove special case when auto-placing 2x2 items
1 year ago
Eric Robinson
e90855b3c4
Rename stores.cpp global variables ( #7425 )
2 years ago
Eric Robinson
6396af1ff5
Cleanup panel code (Part 2) ( #7421 )
2 years ago
Anders Jenbo
e949f41d83
Clean up selection type
2 years ago
Andrew James
99e12f7663
dedupe code to pick up/auto-move items from body
2 years ago
Andrew James
e9bb19b60f
tidy up one-hand equip logic
2 years ago
Andrew James
db02222cda
remove temporary ii variable
2 years ago
Andrew James
6901d9e0fb
don't trample over holditem unnecessarily
2 years ago
Andrew James
5e0b48df2e
Fix not being able to equip two-handed items in a certain case
...
Fix a bug that caused two-handed items not to able to be equipped
if there was an item in the right hand, but not in the left one
and also there wasn't enough space to place the right item TWO times.
This was unintended, obviously, the right item should only be checked for once.
Co-authored-by: Tully <166401925+Tully-B@users.noreply.github.com>
2 years ago
Gleb Mazovetskiy
efa94307e0
Optimize lit blending with light level 0
...
We don't need to worry about the custom Hell light table here (#7166 )
because this change only affects CLX sprites, not dungeon tiles.
2 years ago
Gleb Mazovetskiy
712f0bac0b
Remove `LightTableIndex` global
...
Also removes the redundant `DrawPlayerHelper` function.
2 years ago
Gleb Mazovetskiy
df98042a1b
Optimize InvDrawSlotBack
...
0.4% of the timedemo profile -> 0.2%
2 years ago
matheusgomes28
7848ab731e
Splitting CheckInvPaste() into smaller functions ( #6984 )
2 years ago
Eric Robinson
0d68aed1f7
Sort inventory ( #7040 )
2 years ago
KPhoenix
0f90d5baba
Bugfix: Auto Refill Belt not working properly
2 years ago
Gleb Mazovetskiy
dc59cdaee4
Extract objcurs widths into a file
...
Read from the widths file when using the original CEL.
When using CLX, use width in CLX.
2 years ago
obligaron
2da492d203
Change some functions to Player reference
2 years ago
obligaron
fae6b3d817
Change Player::getId() and MyPlayerId to uint8_t
2 years ago
Gleb Mazovetskiy
c5a5dc9f5c
Fix a few MSVC warnings
2 years ago
Anders Jenbo
bb2e189327
Convert _sfx_id in to class enum
2 years ago
Gleb Mazovetskiy
e5881688f4
`text_render`: Replace optional args with struct
...
4 options args are a bit unwieldy, especially when you want
to pass only the first and the last one.
With a struct, there is no need to specify the default values
for the args in between.
2 years ago
Gleb Mazovetskiy
09ab58343c
Migrate gold drop/withdrawal to `text_input`
...
With this, all text input is handled in a unified way.
2 years ago
ephphatha
24a20ce8e2
Extract uses of MyPlayer to prevent future crashes in tests/game init
3 years ago
ephphatha
fb97eb7114
Clean up hit detection for inventory slots when pasting large items
3 years ago
Stephen C. Wills
45dbe6aa61
Shift software cursor graphic and remove special casing ( #6512 )
3 years ago
Anders Jenbo
c91e69384a
Revert "Fix cursor jitter when clicking inv items ( #6510 )"
...
This reverts commit 2a393397a1 .
3 years ago
Eric Robinson
2a393397a1
Fix cursor jitter when clicking inv items ( #6510 )
3 years ago
Gleb Mazovetskiy
8c1a847f41
Remove utils/stdcompat/string_view.hpp
3 years ago
Gleb Mazovetskiy
c19bfe87fa
Remove utils/stdcompat/algorithm.hpp
3 years ago
Gleb Mazovetskiy
14540164a7
Remove utils/stdcompat/optional.hpp
3 years ago
Gleb Mazovetskiy
62d067b653
Remove utils/stdcompat/abs.hpp
3 years ago
staphen
a090ab7d5c
Apply position-based quest completion logic to Single Player
3 years ago
staphen
9381251b9d
Fix net validation of durability for items without durability
3 years ago
Anders Jenbo
89a677d0cb
Validate item modifier ranges
3 years ago