Commit graph

674 commits

Author SHA1 Message Date
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
obligaron
70db8456ba Remove _pwtype and replace it with UsesRangedWeapon 2021-07-17 17:38:28 +02:00
obligaron
d1d61fcd0f Convert anim_weapon_id and anim_armor_id to enum class 2021-07-17 17:38:28 +02:00
ephphatha
a8ed1998d1 Use Point in path_ functions that reference position
In cases like path_get_h_cost this allows simplifying logic where Point provides functions for the intended behaviour in a much simpler to understand package.

This also makes it clearer which functions are const/don't modify the node and which potentially have side effects.
2021-07-17 17:35:58 +02:00
Anders Jenbo
9264ad4b89 Use IsTileNotSolid() in place of !nSolidTable[dPiece[][]] 2021-07-17 03:57:26 +02:00
Anders Jenbo
2d4da488f0 Split path test functions 2021-07-17 03:57:26 +02:00
ephphatha
190025e79f Use bound parameters for pathfinding functions operating on entities 2021-07-16 20:19:39 +02:00
FluffyQuack
ba60907853
Hold mouse button to keep attacking (Diablo 2-style) (#2349) 2021-07-16 15:01:01 +01:00
Anders Jenbo
dfde45c29a Clean up CheckNewPath target loading 2021-07-16 13:41:12 +02:00
obligaron
c1991d32a5 Fix ScrollViewPort 2021-07-15 19:48:40 +02:00
Anders Jenbo
77b72da276 ♻️Use monster by reference when possible 2021-07-14 20:22:35 -07:00
Anders Jenbo
ef6275caac Clean up private function names 2021-07-12 17:59:22 -07:00
Anders Jenbo
903d4bd2e1 Scope all for loops
This caused 7 of the loops to be rewriteen using range by clang-tidy
2021-07-08 08:14:03 -07:00
Anders Jenbo
9ebdb6db69 General clean up 2021-07-08 03:30:25 -07:00
Anders Jenbo
467b74dc06 Rename object globals 2021-07-08 02:01:14 -07:00
Anders Jenbo
9ae908f947 Rename missile globals 2021-07-08 02:01:14 -07:00
Anders Jenbo
9b8bf92575 Rename quest globals 2021-07-08 02:01:14 -07:00
Anders Jenbo
96bf75b502 Rename player globals 2021-07-08 02:01:14 -07:00
Anders Jenbo
dce78dde62 Rename lighting globals 2021-07-08 02:01:14 -07:00
Anders Jenbo
c8870dbd1f Rename item globals 2021-07-08 02:01:14 -07:00