BC Ko
a293abc2a6
cleanup manual value clamping: inv.cpp
5 years ago
qndel
1538f84ddc
apply enum and fix invalid check
5 years ago
BC Ko
5951e2abb2
cleanup manual value clamping: player.cpp ( #2572 )
5 years ago
BC Ko
ff7891d66a
cleanup manual value clamping: stores.cpp
5 years ago
obligaron
8dbe16d4f6
Introduce GetSpellListItems
5 years ago
obligaron
95daecc1bb
Introduce GetSpellListSelection and remove selection game logic from DrawSpellList
5 years ago
Anders Jenbo
23fdb5aa27
[vanilla] Fix missing dirt corners in automap
5 years ago
Anders Jenbo
0b68a8b2d3
Fix missing dirt tiles in automap
5 years ago
BC Ko
b1d9bfdbf8
cleanup manual value clamping: cursor.cpp CheckCursMove() ( #2563 )
5 years ago
qndel
640d32a750
make ReadySpellFromEquipment have correct item data
5 years ago
obligaron
6f6412fced
diablo_quit also frees game state (and with this sound objects)
5 years ago
ephphatha
0cbaaf56f2
Normalise spacing between words/sentences in help.cpp
5 years ago
BC Ko
0a4361d5fc
cleanup manual value clamping: control.cpp
5 years ago
Juliano Leal Goncalves
f64521a722
🐛 Centralize readied spell update on equipment change
...
This ensures all equipment changes will undergo the check to see if the readied spell needs to change, including auto-equipping items on pickup and with shift click.
5 years ago
Juliano Leal Goncalves
022502660d
♻️ Extract logic to ready spell from staff to player function
5 years ago
Epifanov Ivan
531acbe760
Vita locale detection: safety precautions ( #2557 )
5 years ago
BC Ko
221718250f
cleanup manual value clamping: spells.cpp GetManaAmount() ( #2556 )
5 years ago
BC Ko
c85d3f4b21
Merge pull request #2555 from bcko/2348_bcko_refactor_FindTransparencyValues_2
5 years ago
BC Ko
bcd60ea0b4
refactor 3 versions of FindTransparencyValues in: drlg_l1.cpp, drlg_l2.cpp, drlg_l4.cpp ( #2554 )
5 years ago
staphen
703e5a3f14
3DS: Detect system language and select the appropriate translation
5 years ago
vlad
b7a92d549c
fixes stone curse forever bug caused by negative monster index
...
fixes https://github.com/diasurgical/devilutionX/issues/2550
5 years ago
Epifanov Ivan
63d8e38de1
Auto-detect locale on PSVita. ( #2546 )
5 years ago
ThomasChr
4733b7015c
move lightsource along with monster when monster does teleport. fixes #1965
5 years ago
Anders Jenbo
370e573209
Prefer test versions of translations
5 years ago
Andrew James
8d9c46290d
Automap: Scoped enums and wrappers to minimise bitwise operations ( #2534 )
5 years ago
Anders Jenbo
26756b82dc
♻️ Split up DrawAutomapTile
5 years ago
Anders Jenbo
f2d858af4b
Cleanup magic numbers in automap.cpp
5 years ago
ephphatha
aec1491c98
Close devilutionx_mpq instead of trying to close patch_rt_mpq twice
5 years ago
Ivan Epifanov
cf5ab583d5
Open translations as read-only
5 years ago
Aaron Sun
6701b8a989
Fix attribute up (+) button doesn't work in special case
...
1) Open quest panel
2) Open character panel by click level up (+) button
5 years ago
qndel
644d9dfc5c
fix armor piercing affix range ( #2535 )
5 years ago
Andrew James
0aea0782c7
Refactor Diablo-SHA to attempt to document behaviour through code ( #2524 )
...
* Hardcode the key and ensure buffers are appropriately sized.
If you do want to build the key at runtime the following initial state gets the right sequence:
```cpp
std::linear_congruential_engine<uint32_t, 214013, 2531011, 0> engine(3193970784);
for (auto ¬ch: key)
notch = static_cast<byte>(engine() >> 16);
```
* Move public defines into sha.h, move private struct into .cpp
* Remove unused count member, clarify loop in SHA1Input
* Update circular shift to indicate desired behaviour, remove unnecessary negation.
The parameters are also reordered to match C++20 rotl/rotr and the usual order for shift operators.
5 years ago
Aaron Sun
aef812fb5a
Modify the calculation of panel position
...
left/center combination is used, but panel distance is limited
5 years ago
qndel
0a70a8cece
unify block formula
5 years ago
obligaron
38e78096f8
Fix Keymapper doesn't set any default keys if no diablo.ini is present (after installation)
5 years ago
Anders Jenbo
8df8b940c4
Handle some clang-tidy issues
5 years ago
Aaron Sun
3ee90ca629
Add options for sub-panel alignment
5 years ago
obligaron
b7cdf1eb59
Fix floating Dialogs (Walking while in store)
5 years ago
obligaron
8baa375c1c
Fix walking command gets ignored
5 years ago
Anders Jenbo
90960f0c14
Remove dead code
5 years ago
Gleb Mazovetskiy
5ef79ad1f2
Disable hardware cursor on Android by default
...
Fixes #2502
5 years ago
Anders Jenbo
d77a61461e
Adjust clang-tidy to where Android Studio reads it correctly
5 years ago
4aron5un
4c8210df21
Center the sub-panels (Quest, Character, Spell and Inventory) ( #2498 )
5 years ago
Gleb Mazovetskiy
9aee058137
Hardware Cursor: Default to ON only on SDL 2.0.12+
...
Fixes #2445
5 years ago
qndel
9056092cf8
more clamps ( #2496 )
5 years ago
Vladimir Olteanu
b17ff04ee2
Use string_view in DrawString and friends
5 years ago
qndel
169f980038
ranged/magic formulas
5 years ago
qndel
bd5e30db52
replace armor formula
5 years ago
Gleb Mazovetskiy
3e5a593021
🐞 Fix reading PCX files with odd widths
...
PCX files always have an even number of bytes on each uncompressed source line, which means there is an unused byte of each compressed line if the width is odd.
References:
1. https://kaba.hilvi.org/pastel-1.5.0/pastel/gfx/image_file/pcx/pcx_file.htm
2. https://www.moon-soft.com/program/FORMAT/graphics/pcx.htm#decoding%20.pcx%20files
5 years ago
qndel
f8dc7bd3e3
clamp melee hit chance ( #2491 )
5 years ago