Anders Jenbo
5745f099ba
♻️ Use Point for positions in msg.cpp functions
2021-04-29 21:36:31 +02:00
obligaron
16b3b38908
Move NewPlrAnim logic to AnimationInfo
...
Adjust SetNewAnimation-Parameter Names to Class Member
Adjust NewPlrAnim-Parameter Names to SetNewAnimation-Parameter Names
2021-04-29 04:33:51 +02:00
obligaron
1de46a8495
Rename member variables
2021-04-29 04:33:51 +02:00
obligaron
0b5183f63e
Introduce AnimationInfo
...
Update AnimationInfo.DelayLen comment
2021-04-29 04:33:51 +02:00
Vladimir Olteanu
2a3cf98850
Slight cleanup of dead{.h,.cpp}
2021-04-28 12:56:00 +02:00
Anders Jenbo
b69d18f12d
🌐 Enable translation of all remaning strings
2021-04-25 21:32:41 +02:00
John Törnblom
e0dddf508a
Add automatically translated string literals ( #1694 )
2021-04-25 18:14:58 +02:00
Anders Jenbo
2bd13451a1
♻️ Apply point positioning to all remaning entities
2021-04-25 01:25:48 +02:00
Anders Jenbo
efbe8a8338
♻️ add possition points to monsters
2021-04-24 20:29:52 +02:00
Anders Jenbo
275404029e
♻️ Cleanup player temp variables
2021-04-24 17:07:07 +02:00
Anders Jenbo
e4cfad3196
♻️ Use points instead of individual fileds for player structure
2021-04-24 04:46:08 +02:00
Anders Jenbo
a32ac83090
🎨 cleanup trivial trype comparisons
2021-04-23 02:48:25 +02:00
Anders Jenbo
1e3ed903be
🎨 strip redundant else
2021-04-22 00:39:48 +02:00
Anders Jenbo
f004c78824
🧹 performance-unnecessary-value-param
2021-04-22 00:08:19 +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
373f28736f
🎨 Acceptable parts of modernize-*
2021-04-19 22:42:19 +02:00
Anders Jenbo
6ba343e309
🎨 Acceptable parts of misc-*
2021-04-19 20:11:41 +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
Anders Jenbo
c89bd9c001
🚨 Fix remaning warnings for clang and gcc
2021-04-19 02:44:39 +02:00
Anders Jenbo
946ff5b0fa
♻️ Performe static casts when load save game data
2021-04-18 23:27:21 +02:00
Anders Jenbo
61d15e23db
🎨 Apply direction enum to monsters and relations
...
Missiles _mimfnum is being used for a lot more then just directions and
can also be a 16 degree direction so can't apply enum verbs and
restricitons to it in most cases. This in turns also affects SetMissDir
and some other functions that have to stay int.
2021-04-18 23:13:03 +02:00
staphen
4faf09c2df
Consolidate logic for Mana Shield and player damage.
2021-04-18 21:12:16 +02:00
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
2021-04-16 01:04:54 +02:00
Anders Jenbo
6e1a106a38
🚚 Move header we implement into the project
2021-04-16 01:04:54 +02:00
Anders Jenbo
67a7ff98c5
🚨 Clean up compiler warnings
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
Yuri Pourre
ed1ddfdece
Exposes player id from multi_send_packet
2021-04-14 17:36:31 +02:00
Anders Jenbo
e7ae8ddd04
🚚 Move all enums to there respective headers
2021-04-10 16:30:00 +02:00
Anders Jenbo
ba6b031fa1
✅ Enable all remaning assertions ( #1453 )
2021-04-10 13:25:05 +02:00
Anders Jenbo
9d037bafff
🚨 Fix remaning clang warnings
2021-04-10 12:21:21 +02:00
Anders Jenbo
b46750ace3
♻️ Change _qflags to a meaningful bool
2021-04-10 07:31:53 +02:00
Anders Jenbo
61244c4d93
♻️ Rearange and apply more enums
2021-04-10 05:24:01 +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
Anders Jenbo
b1ffdca0a3
♻️ make better use of enums
2021-04-08 20:29:16 +02:00
Juliano Leal Goncalves
e33ea53086
♻️ Pass ItemStruct on inv AutoGetItem function
2021-04-07 18:34:02 +02:00
Juliano Leal Goncalves
3b015085de
♻️ Pass ItemStruct on item RespawnItem function
2021-04-07 18:34:02 +02:00
Juliano Leal Goncalves
b5a89578f0
♻️ Pass ItemStruct on inv InvGetItem function
2021-04-07 18:34:02 +02:00
Gleb Mazovetskiy
da7567f06e
InitPlrGfx: Only alloc enough for the class
...
Previously, the allocation size was the maximum size over all the classes.
RAM usage per player:
* Before: 2.2 MiB (any class)
* After:
* Warrior: 2.0 MiB
* Rogue: 1.5 MiB
* Sorcerer: 1.6 MiB
* Monk: 1.7 MiB
We now also only allocate memory in multi-player as needed.
This means the game will only use as much RAM for player graphics
as there are players currently in the game.
Less RAM is used for each player because class is now taken into account.
2021-04-07 06:52:07 +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
9021f8daa5
♻️ Pluralize global 'item' array variable
2021-04-06 11:45:28 +02:00
Anders Jenbo
81934158c9
💚 Add missing headers
2021-04-04 06:02:16 +02:00
Anders Jenbo
97716c26ec
🐛 Update xp bar when gaining xp
2021-04-04 05:57:59 +02:00
Anders Jenbo
bba73ea20f
✨ Handle mixed item origins in multiplayer
2021-04-01 14:52:44 +02:00
Anders Jenbo
ca2c2ba5e7
🚨 Handle a bunch of warnings from CLang
2021-03-29 06:26:31 +02:00
Anders Jenbo
fbd86cd3c5
🎨 Mark noreturn functions as such
2021-03-26 02:24:32 +01:00