Commit graph

693 commits

Author SHA1 Message Date
Juliano Leal Goncalves
0d3d4c14f6
🚚 Rename 'Dead' concept to 'Corpse' everywhere (#2808) 2021-09-06 12:49:00 +02:00
Juliano Leal Goncalves
940a120bf9 ♻️ Replace 'ViewX' and 'ViewY' globals with single 'ViewPosition' 2021-09-04 18:06:28 -04:00
Juliano Leal Goncalves
d225202c34 🚚 Rename 'MonsterClass' members for consistency 2021-09-04 23:37:19 +02:00
Juliano Leal Goncalves
21b481bb46 ♻️ Convert 'MonsterClass' enum to enum class 2021-09-04 23:37:19 +02:00
Juliano Leal Goncalves
ef74b6f92d 🚚 Rename 'ObjectStruct' to 'Object' 2021-09-02 05:45:44 +02:00
Juliano Leal Goncalves
20db8d1a11 🚚 Rename 'MonsterStruct' to 'Monster' 2021-09-01 22:26:37 +02:00
Juliano Leal Goncalves
1cd62bbc64 🚚 Rename 'MonsterMode' members for semantic and consistency 2021-09-01 19:15:08 +02:00
Juliano Leal Goncalves
69a7cb66d4 ♻️ Convert 'MON_MODE' enum to 'MonsterMode' enum class 2021-09-01 19:15:08 +02:00
qndel
a737d72dd9
Dynamic char panel 2021-08-30 20:33:55 +02:00
Juliano Leal Goncalves
bb2dfdfb73 🚚 Rename 'ItemStruct' to 'Item' 2021-08-30 13:40:08 +02:00
Juliano Leal Goncalves
01823e1324 ♻️ Replace 'cursmx' and 'cursmy' globals with single 'cursPosition' 2021-08-30 06:45:51 +02:00
Juliano Leal Goncalves
bbf529c65a 🚚 Rename 'PlayerStruct' to 'Player' 2021-08-30 06:44:18 +02:00
Anders Jenbo
4044fadeb5 Clean up some players references 2021-08-30 03:26:17 +02:00
qndel
a9fbf91524 CalcStatDiff cleanup 2021-08-29 17:53:13 +02:00
qndel
770f3a2f20 unify ranged and melee pierce 2021-08-28 18:04:22 +02:00
BC Ko
536121f038 rename _miVar# to var# 2021-08-27 12:57:34 +02:00
BC Ko
4df798808e
2435 refactor global variable Items part 2 (#2673) 2021-08-26 08:06:48 +02:00
Anders Jenbo
d7c6d8b189 Use proper Direction type for AddMissile midir 2021-08-25 20:24:45 +02:00
qndel
3d92b6eea5 Rewrite manashield into not using a missile 2021-08-25 19:32:10 +02:00
qndel
d76158ca03
reflect without missile! (#2659) 2021-08-22 01:32:41 +02:00
Anders Jenbo
d4bd409472 Deduplicate manashild/reflect code 2021-08-21 09:10:53 +02:00
BC Ko
abc00ad107 auto &missile 2021-08-21 03:29:35 +02:00
BC Ko
1a6562e16d
Merge pull request #2648 from bcko/2435_refactor_Missiles_3 2021-08-20 09:53:17 +02:00
qndel
f6bb118cd5
remove reflect on new game (#2649) 2021-08-20 09:03:15 +02:00
qndel
7ba878fd4d fix reflect on loading 2021-08-20 00:55:54 +02:00
Anders Jenbo
4c6a5bab56 Clean up god mode 2021-08-19 20:36:12 +02:00
Anders Jenbo
c5e0966190 Clean up golem code 2021-08-13 03:59:29 +02:00
qndel
045921813b some useless code removal 2021-08-12 21:40:33 +02:00
ephphatha
8f2e94ae4d Use unsigned types for player experience and related values 2021-08-12 13:38:05 +02:00
Andrew James
f10005e0b6 use std::clamp and std::min for multiplayer experience gain caps 2021-08-12 13:38:05 +02:00
ephphatha
a561cb18de Explicitly check values are in expected range instead of casting to unsigned for <0 2021-08-12 13:38:05 +02:00
vladtepesch
0e56e52c75
fixes casting level 0 spell says "not enough mana" (#2568) 2021-08-11 19:52:00 +00:00
obligaron
82cea78def Apply clang-format 2021-08-11 20:52:32 +02:00
BC Ko
5951e2abb2
cleanup manual value clamping: player.cpp (#2572) 2021-08-11 13:10:46 +02:00
qndel
0a70a8cece unify block formula 2021-08-07 16:34:29 +02:00
Aaron Sun
3ee90ca629 Add options for sub-panel alignment 2021-08-07 16:09:32 +02:00
4aron5un
4c8210df21
Center the sub-panels (Quest, Character, Spell and Inventory) (#2498) 2021-08-05 21:27:07 +02:00
qndel
9056092cf8
more clamps (#2496) 2021-08-05 02:53:24 +02:00
qndel
169f980038 ranged/magic formulas 2021-08-04 23:55:44 +02:00
qndel
bd5e30db52 replace armor formula 2021-08-04 23:55:44 +02:00
qndel
f8dc7bd3e3
clamp melee hit chance (#2491) 2021-08-04 11:36:06 +02:00
obligaron
fe034ce709 Towncast: Fix character changes direction for casting 2021-07-30 17:09:28 +02:00
Anders Jenbo
ab8afa7cd7
Fix edge cases in mouse action tracking code (#2452)
Fixes #2431

Also:
- Track spell targets
- Merge repeat walk in to the new repeat action code
- Avoid time based repeats (use action frame instead)
2021-07-25 03:57:42 +00:00
Anders Jenbo
8ba3bbb6a4
Have PosOkPlayer take PlayerStruct as input (#2430) 2021-07-20 00:30:35 +01:00
Anders Jenbo
f0a7a5c989 🎨 Apply code style 2021-07-19 05:44:20 +02:00
Anders Jenbo
069249f318 🚚 Move local function to anonymous namespace i-p 2021-07-19 05:44:20 +02:00
Anders Jenbo
6227c0a012 Cancel targeted attack on dead targets
Fixes #962
2021-07-19 02:47:58 +02:00
Anders Jenbo
899d1886c1 🐛 Fix multi target attack not hitting left side targets 2021-07-18 05:16:02 +02:00
Anders Jenbo
f4897c3139 Clean up MouseAction code 2021-07-18 05:16:02 +02:00
Anders Jenbo
0889780923 Remove more usage of miniwin types 2021-07-18 02:11:58 +02:00