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
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
5a69380074
♻️ Leverage 'ItemType' enum
5 years ago
Juliano Leal Goncalves
6323539fcc
🚚 Rename 'item_type' enum to 'ItemType'
5 years ago
ephphatha
956dcc7fc9
Add helper for selecting animation sprites from Direction
...
The use on PlayerAnimationData could be further simplified by adding a helper to PlayerStruct but that'd be introducing another changed file to the PR... Something for later.
The monster version is only used once thanks to the helpers added in previous commits. This was mainly to highlight the similarity between PlayerAnimationData and AnimStruct, AnimStruct could inherit/extend PlayerAnimationData without much trouble.
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
b74feb01dc
🐛 Correctly check if item name will fit in the info panel
5 years ago
Anders Jenbo
7169882b1f
✨ Implement new font rendering
5 years ago
qndel
197d3edd1b
fix loot
5 years ago
Juliano Leal Goncalves
4431e3a823
🚚 Rename 'UItemStruct' struct to 'UniqueItem' ( #2806 )
...
* 🚚 Rename 'UItemStruct' struct to 'UniqueItem'
* 🚚 Rename 'UniqueItemList' global array to 'UniqueItems'
New name is more concise and follows the standard of pluralizing the base name for collections.
5 years ago
qndel
927e773696
small debug cleanup
5 years ago
Juliano Leal Goncalves
6146b828e9
🚚 Rename 'MonsterData' global to 'MonstersData'
...
This avoids conflicts with the struct name as we'll be renaming that next.
5 years ago
Juliano Leal Goncalves
20db8d1a11
🚚 Rename 'MonsterStruct' to 'Monster'
5 years ago
qndel
3d17bfdc7d
upgrade debug item drop generation
5 years ago
BC Ko
589abe65d1
documentation cleanup: items
5 years ago
Juliano Leal Goncalves
7841c4731e
🚚 Rename 'PkItemStruct' to 'ItemPack'
5 years ago
Juliano Leal Goncalves
bb2dfdfb73
🚚 Rename 'ItemStruct' to 'Item'
5 years ago
Anders Jenbo
bee8388c20
Fix inaccurate gameplay with NOSOUND
5 years ago
Juliano Leal Goncalves
01823e1324
♻️ Replace 'cursmx' and 'cursmy' globals with single 'cursPosition'
5 years ago
Juliano Leal Goncalves
bbf529c65a
🚚 Rename 'PlayerStruct' to 'Player'
5 years ago