Juliano Leal Goncalves
379a27b64a
♻️ Convert 'ItemType' enum to enum class
...
🎨 Rename 'ItemType' elements to enum class standards
5 years ago
Juliano Leal Goncalves
5607c58daa
🏷️ Add 'PickRandomlyAmong' function that picks one value from a set of values randomly
...
This will be used in a few places where we previously used a raw integer random to index into a local array for selection, simplifying that type of logic to a single statement.
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
Sid672
a12a7511a9
Functional documentation moved
5 years ago
qndel
a0461bd1c0
stop displaying 0's in tiledata debug command
5 years ago
qndel
d05316c67d
tiledata debug command
5 years ago
qndel
a3603d824e
debug X toggle
5 years ago
Anders Jenbo
db1f8495d8
Fix updating color cyceling
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
Sid672
84c919f20f
Move doc from restrict.cpp to header
5 years ago
Anders Jenbo
e68c8cc834
Reuse EntranceBoundaryContains in portal logic
5 years ago
Juliano Leal Goncalves
8a93087fb7
♻️ Extract quest entrance boundary check to a member function on QuestStruct
5 years ago
Juliano Leal Goncalves
3e24a58ba6
♻️ Replace 'questxoff' and 'questyoff' globals with single 'questEntranceOffsets'
5 years ago
ephphatha
67ecea1a42
Always set the monster animation when ChangeAnimationData is called
...
Required updating AnimationInfo to handle being passed 0 for the total framecount, previously it would call clamp with min > max which was invalid.
5 years ago
ephphatha
8e155e011f
Rename helpers on Monster to match AnimationInfo
5 years ago
ephphatha
b62ee6a66e
Remove use of direction for towners with a single facing
5 years ago
ephphatha
87a33097a0
Rename ScrollDirection enum to follow convention
...
Pretty sure the backing type can be left to the default as well but I haven't had the time to investigate where it's used fully.
5 years ago
ephphatha
9ef77cb428
Use scoped enum for Direction16.
...
Allows renaming the members to share names with Direction members when
representing the same conceptual direction.
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
dda9a5dda0
Remove redundant else statements in L1*OperateDoor functions
5 years ago
ephphatha
9c9426821d
Update MoveMissilePos to use Direction and Displacement types.
...
Remove explicit cases falling through to default case in MoveMissilePos
5 years ago
ephphatha
4158651eb4
Simplify IsPathBlocked logic
...
This could make use of path.cpp::path_solid_pieces if it weren't for path directions being completely unrelated to the Direction enum values.
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
064a70a9b1
Fix double encoding of monster names
5 years ago
Anders Jenbo
5390c9baa3
Add widscreen cutstart
5 years ago
Anders Jenbo
cd79f0204d
🚨 Fix compiler warnings
5 years ago
Anders Jenbo
b74feb01dc
🐛 Correctly check if item name will fit in the info panel
5 years ago
Anders Jenbo
ce66aea070
Optimize masked Art blitting
5 years ago
Anders Jenbo
2d47c12515
Fix charpanel always showing player 0 stats
5 years ago
Anders Jenbo
41f6b62caa
Fix infinit loop if first word overflows the text box
...
Fixes #2829
5 years ago
Anders Jenbo
7169882b1f
✨ Implement new font rendering
5 years ago
Anders Jenbo
3c246a5930
✨ Add TRN support to PCX loader
5 years ago
obligaron
836bb92e8e
MoveMissileAndCheckMissileCol: Call CheckMissileCol only once for a tile and target
5 years ago
obligaron
730ceee3d2
Make MoveMissileAndCheckMissileCol check skipped tiles
5 years ago
obligaron
8da46627a7
Introduce MoveMissileAndCheckMissileCol
5 years ago
obligaron
f957c3a099
Allow to spawn more than 8 monsters
5 years ago
obligaron
1b3381ce8e
Move CrawlNum to CrawlTable and make it extern visible
5 years ago
obligaron
7d86991534
debug spawn command with configurable monster count
5 years ago
qndel
d47d2e3030
debug monster commands
5 years ago
Siddharth singh chouhan
ec1850e295
Move documentation from implementations to declarations #2735 ( #2836 )
5 years ago
Siddharth singh chouhan
0d3bf15601
Move docs to header
5 years ago
qndel
a46d2c948c
fix golem spawning on top of player
5 years ago
sheng-luwei
d530dd81ca
Update de.po
5 years ago
qndel
90eb35d718
fix golems on maps with set pieces
5 years ago
M0Rf30
5f18852abe
🌐 Update Italian localization
5 years ago
staphen
946ae987a3
[Android] Fix input not being in view for 7.1+
5 years ago
qndel
197d3edd1b
fix loot
5 years ago