Gleb Mazovetskiy
1519e995cf
Move store graphics out of `stores.cpp`
...
These graphics are used in various places outside of `stores.cpp`.
4 years ago
ephphatha
68b3252d24
Call dropitem when spawning a quest reward in a network game
...
This allows the item to appear in the delta sync when a new player joins the game, but does not cause the item to drop for other players on the same level at the time the action occurs due to differences in the way this message is handled.
4 years ago
ephphatha
db1d776539
Deduplicate PItem and DItem
4 years ago
staphen
b85485b8f3
Resolve game crash when syncing Diablo items in Hellfire games
4 years ago
obligaron
35dc64312e
Show preview CelSprite for player actions (Introduce PlayerStruct.pPreviewCelSprite and UpdatePreviewFrame)
4 years ago
ephphatha
8bf05571a1
Dedupe code which determines how much life/mana to restore for potions
...
This is very similar to the code used when casting heal other, except for how the amount to heal is chosen. Could potentially reuse it there as well with a bit of work.
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
Anders Jenbo
6de6825ce0
Correct false positives translation warnings
4 years ago
Anders Jenbo
6d346c7e18
Use std::string in PrintItemPower
4 years ago
Anders Jenbo
af08a99691
Perform item requirement check when entering vendors
4 years ago
ephphatha
3598ee313c
Remove StoreStatOk, replace with calls to CanUseItem
4 years ago
ephphatha
6e2751649a
Move ItemMinStats to a member function on Player
4 years ago
qndel
8d318ae397
🐛 Make item stat checking consistent
...
- Prevent negative stats from affecting the ability to use items
4 years ago
Anders Jenbo
c2515f4724
Fix number of witch items for Diablo, clean up store spawn code
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
obligaron
43841477bc
Add OptionEntry Test Bard
4 years ago
ephphatha
b8b220311a
Remove AvailableItems, no longer required
4 years ago
ephphatha
18658f6a42
Remove duplicate argument to DeleteItem
4 years ago
ephphatha
f60cc3bfd9
Update calls to DeleteItem to use ActiveItems inline
...
This highlights how all (except one) call sites duplicate the i argument. With the exception of the use in msg.cpp this can be treated as a offset into activeItems and doesn't care about the real index.
4 years ago
ephphatha
55a52b82c2
Use unsigned types for Items array indexes consistently
...
Actual type used varied based on context, this addresses some type conversion warnings.
4 years ago
ephphatha
71e39dda6f
Extract common logic for loading items from a save
...
This was duplicated for loading a save from the menu and transitioning to a new level
4 years ago
qndel
30a28fd21e
fix displaying unique stats
4 years ago
Anders Jenbo
799f1763af
Performce UTF8 aware limited string copies
4 years ago
Anders Jenbo
9d4a5f4890
Clean up item name generation
4 years ago
obligaron
677303cba9
Reduce use of view globals in game menu
4 years ago
Anders Jenbo
69b4a64a8f
Fix OOB in ItemSpaceOk
...
Fixes #3557
4 years ago
qndel
18c0b1858f
use DUR_INDESTRUCTIBLE ( #3468 )
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
Andrew James
796e2813cf
Use scoped enums for DungeonFlags/BFLAG ( #3135 )
4 years ago
Gleb Mazovetskiy
64a88343e8
Refactor: Use item iterators in 7 more places
4 years ago
Anders Jenbo
2d986430be
Allow for slightly better item name generation
4 years ago
Anders Jenbo
e9bc05063c
[translation] Allow reordering of prefix
4 years ago
Anders Jenbo
bff9140995
Expand buffers to handle Bulgarian translation
4 years ago
qndel
0ccdf940f7
fix bounds checks ( #3237 )
4 years ago
qndel
78c75aa7c7
update vision of other players
4 years ago
qndel
d81de165d4
code cleanup ( #3235 )
4 years ago
staphen
2e9dd1defa
Use unsigned char in CornerstoneSave()
4 years ago
staphen
ab13fba13f
Use Rune Bomb or Cathedral Map to open Hive or Crypt
4 years ago
qndel
91fd583fe6
Revert "fix loot" for 1.3.0 ( #3064 )
...
This reverts commit e268ff9afa .
5 years ago
Anders Jenbo
ba10fa3182
Correct name generation of staffs
5 years ago
Anders Jenbo
ebc0ad94eb
Clean up SetupAllItems initialization
5 years ago
qndel
c44ae7b0d4
Faster and better debug unique drop
...
Drop unique debug command tweak
5 years ago
Gleb Mazovetskiy
ec13c333a9
Refactor: Use item iterators for scroll checks
...
Refs #2586
5 years ago
Anders Jenbo
4f791948ff
Fix missing switch cases
5 years ago
Anders Jenbo
0c5bdf5dbf
🐛 Reject items that would cause an OOB to
5 years ago
Anders Jenbo
671fdbd125
Implement contextural translation (pgettext)
...
Fixes #2369
Fixes #2790
5 years ago
Gleb Mazovetskiy
55b49bfea4
Simplify unique info window drawing
...
1. Use `BlitFrom` instead of a custom loop for drawing the divider line.
2. De-duplicate position calculation.
5 years ago
Anders Jenbo
7771a08d03
Translatable mainpanel
5 years ago