ephphatha
db1d776539
Deduplicate PItem and DItem
4 years ago
Anders Jenbo
6b2481a76c
Touch support on all SDL2 platforms
4 years ago
ephphatha
77a783098d
Use ObjectAtPosition when checking if an item can be dropped
...
This extracts some of the common object logic from ItemSpaceOk and CanPut, these functions are almost identical except for the way players and monsters are checked...
4 years ago
ephphatha
e633d7ff1e
Restrict dropping items to adjacent tiles
...
This more closely matches vanilla behaviour until more intelligent dropping item behaviour is implemented (see #3489 )
4 years ago
Anders Jenbo
6d346c7e18
Use std::string in PrintItemPower
4 years ago
ephphatha
bda0a0624b
Replace some usages of Item.statFlag
4 years ago
Andrew James
a1a64ef32e
fix negated check in SyncGetItem
...
I missed this when resolving merge conflicts :/
4 years ago
obligaron
ff5de056fa
Add all (boolean) Game Settings to Settingsmenu ( #3616 )
4 years ago
Gleb Mazovetskiy
c57644970f
Move `UiFlags` and `UiPanels` into their own files
...
The first breaks circular dependency between `DiabloUI` and `text_render`.
The latter one moves `UiPanels` to a more appropriate place.
4 years ago
Andrew James
4a940b1b07
Remove uses of Items[] as a temporary for other Item variables ( #2924 )
4 years ago
Gleb Mazovetskiy
7e1fea6f76
clang-format all files in {Source,test}/
...
Also includes a few manual tweaks to comments and newlines for better results.
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
obligaron
cb6d49e697
Add OptionEntry Item Pickup Sound
4 years ago
obligaron
82b86d9042
Add OptionEntry Auto Equip Sound
4 years ago
ephphatha
18658f6a42
Remove duplicate argument to DeleteItem
4 years ago
ephphatha
baa1cd65c5
Make FindGetItem return an index into ActiveItems
...
This allows the calling code in DeltaLoadLevel to behave the same as every other use of DeleteItem, making it possible to remove the duplicate argument and ensure that the ActiveItems/AvailableItems arrays are treated appropriately.
4 years ago
ephphatha
1d560601f2
Remove duplicated argument to InvGetItem
...
This was obscuring efforts to track how ActiveItems and Items are referenced, hopefully can switch back to the Item& soon.
4 years ago
obligaron
677303cba9
Reduce use of view globals in game menu
4 years ago
Gleb Mazovetskiy
b8affd5fe5
Fix a few build warnings
4 years ago
Anders Jenbo
56170b3372
Clean up id normalization
4 years ago
ephphatha
335b0b9349
Use crawl table based search for item checks
...
fixes #3207
4 years ago
joewis
9cd6f206ad
Disable shift-clicking of items you don't have stats to wear
4 years ago
Gleb Mazovetskiy
64a88343e8
Refactor: Use item iterators in 7 more places
4 years ago
obligaron
2158faadab
Use SDL_StartTextInput for gold drop dialog
4 years ago
obligaron
98ecd0ecc5
Introduce CloseGoldDrop
4 years ago
Joerg Wissen
a274c6eab4
Swap weapons between body and inventory with shift-click
4 years ago
obligaron
f142b63664
Disallow to swap gear while not standing/walking.
4 years ago
Joerg Wissen
4e7d6b8f9e
Optional feature to auto-refill belt from inventory ( #983 )
4 years ago
Bernd Stellwag
fcc0266703
Add new option to enable/disable item pickup sounds
4 years ago
staphen
ab13fba13f
Use Rune Bomb or Cathedral Map to open Hive or Crypt
4 years ago
staphen
ee23f41e0c
Enable opening Hive and Crypt using gamepad
4 years ago
Bernd Stellwag
f1a0aa3b49
Replace broken link with @see annotation to text representation of the linked image
4 years ago
Yuri Pourre
7d74336e6b
Enhance ctrl + drop
5 years ago
ephphatha
4198a19787
Remove debug assert after picking up an item
...
Doesn't really do anything useful. If the target position doesn't contain an item on the local client the code looks for a matching dropped item and tries to pick that up instead. It doesn't really make sense to assert that an item exists at the target position or that it matches, a desync has already happened by this point if the checks on lines 1647 or 1649 are false.
5 years ago
Anders Jenbo
31ba8e2bc6
Validate additional network messages
5 years ago
Yuri Pourre
b8450dc792
Assign ctrl to drop items
5 years ago
obligaron
24c5ee8bd2
Draw belt item number for unusable scrolls
5 years ago
Gleb Mazovetskiy
ec13c333a9
Refactor: Use item iterators for scroll checks
...
Refs #2586
5 years ago
qndel
70dc796287
proper fix
5 years ago
qndel
81199b14af
fix wrong armor display in multiplayer
5 years ago
Anders Jenbo
7771a08d03
Translatable mainpanel
5 years ago
Juliano Leal Goncalves
379a27b64a
♻️ Convert 'ItemType' enum to enum class
...
🎨 Rename 'ItemType' elements to enum class standards
5 years ago
Juliano Leal Goncalves
e39b33971f
♻️ Leverage 'IsAnyOf'
5 years ago
Juliano Leal Goncalves
094f308d22
🐛 Use 'Spell' instead of 'RSpell' for clearing used staff charges
...
Readied spell can be swapped to something else in between the cast and the hit frame, resulting in incorrect removal.
This is how currently belt and inventory scrolls are checked so we are now using a consistent strategy.
5 years ago
Juliano Leal Goncalves
776a3d4e84
🐛 Use 'Spell' instead of 'RSpell' for clearing used inventory scrolls
...
Readied spell can be swapped to something else in between the cast and the hit frame, resulting in incorrect removal.
This is how currently belt scrolls are checked so we are now using a consistent strategy.
5 years ago
ephphatha
b12de6fe12
Use scoped enum for Direction
...
Identified and removed an instance of Direction being used as an argument for a bool parameter
Removed a single-use temporary variable being cast from sprite frame to direction to size_t
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
Fix alignment of WalkSettings array
5 years ago
Anders Jenbo
7169882b1f
✨ Implement new font rendering
5 years ago
BC Ko
9345c7cac7
Remove duplicate documentation
5 years ago
BC Ko
51f50570da
documentation cleanup : inv
5 years ago
Juliano Leal Goncalves
bb2dfdfb73
🚚 Rename 'ItemStruct' to 'Item'
5 years ago
Juliano Leal Goncalves
01823e1324
♻️ Replace 'cursmx' and 'cursmy' globals with single 'cursPosition'
5 years ago