585 Commits (3c571bf64baaf4b7fc271979b2c64afa6024585d)

Author SHA1 Message Date
Mikołaj Piróg dda0b96ea5
Remove #defines in player.h and add constexpr where applicable (#4896) 4 years ago
Cesar Canassa 6579aa53c5
Normalise the player and monster walking function naming (#4877) 4 years ago
Gleb Mazovetskiy d152d2c0fb Add OptionalOwnedCelSprite 4 years ago
Gleb Mazovetskiy 72660d9189
Migrate snprintf to fmt (#4845) 4 years ago
Anders Jenbo 0cc5ee4344 Clean up variable definitions 4 years ago
Anders Jenbo d82f2ebc9e Pass players by reference instead of an index 4 years ago
Vladimir Olteanu 2588cc12d7
Reduce reliance on `bool done` for control flow, part 2 of x (#4741) 4 years ago
Anders Jenbo 6d56058708 Move level generation to subfolder 4 years ago
ephphatha 3af11ad355 Use the same function when checking and actually dropping an item 4 years ago
Gleb Mazovetskiy 8e9c9e0238 Reduced the size of `OwnedCelSprite*` by 8 bytes 4 years ago
obligaron 9ac04314f4 Introduce Player::isOnLevel 4 years ago
Andrew James 0add7a8af6
Define sizes using Size type in control.cpp/stash.cpp (#4737) 4 years ago
Vladimir Olteanu 2cc9d70fa6
Use decimal separators for gold and XP (#4722) 4 years ago
Vladimir Olteanu 4d6ff58c22
Reduce reliance on `bool done` for control flow (part 1 of x) (#4720) 4 years ago
Gleb Mazovetskiy 1fc8ecb6f6 Add fmt::runtime annotations for C++20 support 4 years ago
Gleb Mazovetskiy 779ccaca17 Overhaul translation fetching 4 years ago
Anders Jenbo 1203514383 Clean up use of currlevel 4 years ago
Gleb Mazovetskiy e76d5fc494 UseScroll: use `HasInventoryOrBeltItem` 4 years ago
Gleb Mazovetskiy 628406a44c Refactor inventory/belt item presence and removal 4 years ago
qndel 354e329644 Players[MyPlayerId] -> MyPlayer 4 years ago
obligaron bc15bdf3a9 Remove PANEL_ defines and replace them with GetMainPanel() 4 years ago
Stephen C. Wills 99ab06776c
Apply clang-format to inv.cpp (#4581) 4 years ago
Nick Tholin 5fd93408f8 Move identical belt items down belt as they are used. 4 years ago
ephphatha af3187a15e Provide sound cue when gold is auto-placed into the open inventory 4 years ago
ephphatha 0cfd0e194a Refactor TryDropItem to reduce use of globals 4 years ago
ephphatha 4d7c08d5b4 Deduplicate code for setting stat requirements/flag 4 years ago
ephphatha 64a2c41b2c Set clang-tidy config for MethodCase option 4 years ago
ephphatha 7a3722d63b Add helper for clearing an item and using it's old value 4 years ago
Andrew James 72cfdc31ea
Clear held item when putting in an empty belt slot (#4490) 4 years ago
ephphatha ad7ad46ce9 Explicitly clear HoldItem when putting an item into the Inventory/Stash 4 years ago
ephphatha 7e7798fd2b Add function to mark an item as empty 4 years ago
ephphatha 28b6eaf7de Only use HoldItem in InvGetItem if necessary 4 years ago
ephphatha 026b428c7d Add NewCursor(Item&) for setting the cursor based on a held item 4 years ago
Anders Jenbo dc706e8ed5 Use HoldItem for determining if an item is held 4 years ago
ephphatha 5b83f2a7c4 Remove SetICursor and unused globals 4 years ago
ephphatha aab970dcde Use GetIventorySize(Item) instead of SetICursor in inv.cpp 4 years ago
Gleb Mazovetskiy a66ca44695 Zero-based frame indexing 4 years ago
Anders Jenbo c5a3d138e0 Avoid using HeldItem in CheckInvSwap 4 years ago
staphen 33b27f630f Clean up logic for 1-handed weapons in CheckInvPaste() 4 years ago
staphen d16c2f0086 Avoid recreating items in PutItem locally 4 years ago
staphen cf41911417 Use appropriate spell ID when quick casting from scroll or staff 4 years ago
qndel a6ebc506a0 refresh stats when sending an item to stash by ctrl + click 4 years ago
staphen 33338115f6 Don't use HoldItem in CMD_PUTITEM handler 4 years ago
staphen 6a30cd3950 Add gamepad support for stash 4 years ago
staphen 82f53c53b0 Fix shift-click equipment swapping network messages 4 years ago
staphen 822a0cd22a Fix auto-equip network messages 4 years ago
Anders Jenbo e2fef44c9f Close gold withdraw when closing stash 4 years ago
ephphatha 4bbc2e56a0 Restore position of dropped note when recombining fragments 4 years ago
Anders Jenbo 1ba817ca53
Unify gold handling (withdraw any amount from stash) 4 years ago
Anders Jenbo 6d28810dc7 Change infostr from char[128] to std::string 4 years ago