Commit graph

408 commits

Author SHA1 Message Date
Anders Jenbo
6321bf04d5 ♻️Pass player to towner by reference instead of index 2021-05-07 00:29:46 +02:00
Gleb Mazovetskiy
0edfa3de66 🚚 Move CEL rendering to engine/render/cel_render.cpp 2021-05-07 00:16:40 +02:00
Anders Jenbo
f579b2f287 Handle cel/cl2 files as byte arrays 2021-05-06 13:17:54 +02:00
Anders Jenbo
92db72719d 🔥 Remove some unused code 2021-05-05 10:16:45 +02:00
Anders Jenbo
4e284ede14
Correct singular "Scroll" in texts. 2021-05-04 13:41:29 +02:00
Jmgr
994c5e7cfe Add a keymapper
Rename the config entry for changing the quick messages texts
Other small improvements and simplifications
Set the quick spell hotkey text to be white with a black shadow
Add QuitGame action, unbound by default
Set the ItemInfo and QuestDebug keys to be unbound by default
2021-05-03 17:51:40 +02:00
Gleb Mazovetskiy
ff7fdd2848 🐞 Fix spellbook rendering crash in hellfire
Fixes a bug introduced in #1796
Frame numbers are 1-based and there are 6, not 5 frames there.
2021-05-03 04:29:17 +01:00
Anders Jenbo
3f891a4333 🌐 Correctly handle two more plural translation 2021-05-02 23:33:50 +02:00
Anders Jenbo
654a2b8834 ♻️Clean up automap code
Use Point for x,y pairs. Make helpers for drawing door and squares
2021-05-02 15:27:38 +02:00
Vladimir Olteanu
d9a4ff8729
Use std::string_view for towners' names (#1750) 2021-05-02 06:51:32 +02:00
Anders Jenbo
d83fa8edb3 🌐 Apply plural translation where applicable 2021-05-02 04:47:49 +02:00
Anders Jenbo
22d7d41615 🌐 Fix remaning plural form of gold related texts 2021-05-02 00:31:02 +02:00
Anders Jenbo
639e94b3d6 🌐 Use plural form translation for handeling gold related texts 2021-05-02 00:21:25 +02:00
Gleb Mazovetskiy
4408ddc127 🧹 Fix some -Wformat warnings 2021-05-01 21:59:34 +02:00
Gleb Mazovetskiy
1b8b62a8c2 ♻️ Store CEL width with the sprite itself
Instead of passing the CEL sprite width when drawing, store the CEL
width at load time in the new `CelSprite` struct.

Implemented for most sprites except towners, missiles, or monsters.
2021-05-01 20:51:55 +02:00
Anders Jenbo
48dbb47d70 🌐 Apply static translations 2021-04-29 01:21:28 +02:00
Anders Jenbo
187d547fb8 🌐 Remove unused string from the translation list 2021-04-28 01:58:00 +02:00
Mathieu Maret
8d8711a966
Apply static menu translations (#1728) 2021-04-27 14:20:31 +02:00
thebigMuh
ad8f342db0 Adding constness 2021-04-26 23:30:02 +02:00
Anders Jenbo
93e42b9b8c 🌐 Add missing translation string 2021-04-25 23:43:12 +02:00
John Törnblom
e0dddf508a
Add automatically translated string literals (#1694) 2021-04-25 18:14:58 +02:00
Anders Jenbo
7912e510f0 🎨 Clean up overuse of SDL types 2021-04-24 17:07:07 +02:00
Anders Jenbo
2969b80163 🎨 Run readability-identifier-naming on all src sub-folders 2021-04-22 03:53:35 +02:00
Jmgr
1d84156509 Simplify bitshift divisions/multiplications 2021-04-21 05:31:17 +02:00
Anders Jenbo
f8e3672469 ♻️Fully apply clang-tidy rules to a few files 2021-04-20 19:39:38 +02:00
Anders Jenbo
9e307a0d4a 🎨 Rename towner[] to towners[] 2021-04-19 22:42:19 +02:00
Anders Jenbo
373f28736f 🎨 Acceptable parts of modernize-* 2021-04-19 22:42:19 +02:00
Anders Jenbo
b978d80119 🎨 llvm-include-order 2021-04-19 20:11:20 +02:00
Anders Jenbo
bb4e1960e7 🎨 modernize-use-nullptr 2021-04-19 16:02:05 +02:00
thebigMuh
50dcf587f4
Adding fancier XP bar (#1597) 2021-04-19 02:59:20 +02:00
Anders Jenbo
c89bd9c001 🚨 Fix remaning warnings for clang and gcc 2021-04-19 02:44:39 +02:00
Gleb Mazovetskiy
95946e3a7c
🧹 Cleanup unused variables (#1584)
Fixes `unused-variable` and `unused-but-set-variable` compiler warnings.
2021-04-18 18:15:47 +02:00
Anders Jenbo
997c1dba55 🚚 Split up all.h in to proper header relations 2021-04-16 01:04:54 +02:00
Anders Jenbo
f450d6a125 🚚 Move defines to there proper files 2021-04-16 01:04:54 +02:00
Juliano Leal Goncalves
cc5f2a8f49 🎨 Rename 'attribute_id' enum to 'CharacterAttribute'
Members were renamed as well for readability.
2021-04-13 03:02:14 +02:00
Juliano Leal Goncalves
f54cc5aa95 ♻️ Convert 'attribute_id' to a scoped enumeration 2021-04-13 03:02:14 +02:00
Juliano Leal Goncalves
28ad9d43c5 🎨 Rename 'plr_class' enum to 'HeroClass'
Members were renamed as well for readability.
2021-04-12 20:00:53 +02:00
Juliano Leal Goncalves
7d95bfed39 ♻️ Convert 'plr_class' to a scoped enumeration 2021-04-12 20:00:53 +02:00
Anders Jenbo
e7ae8ddd04 🚚 Move all enums to there respective headers 2021-04-10 16:30:00 +02:00
Anders Jenbo
61244c4d93 ♻️ Rearange and apply more enums 2021-04-10 05:24:01 +02:00
Anders Jenbo
4f8b5e2f5f 🎨 Correct style of true comparisons 2021-04-09 15:13:02 +02:00
Anders Jenbo
20186e0370 🎨 Replace TRUE/FALSE with true/false
fix


Fix


fix
2021-04-09 15:13:02 +02:00
Anders Jenbo
93d42b62b8 ♻️ Change BOOL to bool 2021-04-09 15:13:02 +02:00
Anders Jenbo
4ee84aea1a ♻️ Change BOOLEAN to bool
fixup BOOLEAN
2021-04-09 15:13:02 +02:00
Juliano Leal Goncalves
25db7743dd ♻️ Reuse 'player.GetMaximumAttributeValue' for max stats 2021-04-08 04:31:26 +02:00
Anders Jenbo
bfb3c11c2b 🎨 Change namespace to devilution 2021-04-06 15:21:25 +02:00
Anders Jenbo
630e507f63 🚚 Apply namespace 2021-04-06 15:21:25 +02:00
Juliano Leal Goncalves
b9fdf02925 🐛 Spend only needed points when shift+clicking stats
When the stat points needed to reach a given attribute's cap is less
than the total amount of points remaining to distribute, only the
necessary points will be spent now, leaving the rest to be spent on
other attributes.
2021-04-04 01:55:44 +02:00
Juliano Leal Goncalves
bb2efe03e3 ♻️ Use 'PlayerStruct' references in 'ReleaseChrBtns' function 2021-04-04 01:55:44 +02:00
qndel
3501af6647 fix spinner 2021-04-04 01:43:17 +02:00