qndel
8e137f5305
close help panel while talking to NPCs
4 years ago
staphen
f9e01f25c4
Consistently send network messages when monsters are damaged
4 years ago
ephphatha
8132d6a033
Take object by reference in OperateObject
4 years ago
staphen
4115c8ce29
Ensure valid animation state when loading death animation in InitPlayer()
4 years ago
Anders Jenbo
2d9531f692
Remove redundant check for distance when operating doors
...
IsPlayerAdjacentToObject() is checked before calling OperateObject().
Previously teleFlag would ignore sendmsg which was likely a bug causing
the event to fire multiple times.
4 years ago
obligaron
2493f06116
ActorPosition: Remove offset, offset2 and velocity
4 years ago
obligaron
5913783826
Add walking offset calculation to ActorPosition (and validate it)
4 years ago
obligaron
acfa8ed022
Reduce use of position.offset in PmChangeLightOff
4 years ago
obligaron
a410e989bf
Remove ScrollInfo
4 years ago
Gleb Mazovetskiy
ba34bafb3f
Use SDL events directly
...
Removes redundant miniwin events and queue, using SDL events directly instead.
Demo migrated using this script: https://gist.github.com/glebm/8a73b04f695de96f344cc2e35151e03e
4 years ago
Gleb Mazovetskiy
961866e1c4
CLX: A new graphics format
...
The format is almost identical to CL2, except it uses the frame header
to store frame width and height instead of 5 32-line offsets.
This means we always have access to frame dimensions, so we can use it
as an on-disk format for our graphics as well.
Additionally, we may be able to optimize the rendering even more
in the future now that we have guaranteed knowledge of frame dimensions.
4 years ago
obligaron
439a9926e5
Clean up spell usage function names
...
Rename UseMana -> ConsumeSpell
Rename RemoveCurrentSpellScroll -> ConsumeScroll and remove unused return value
Rename UseStaffCharge -> ConsumeStaffCharge
Rename UseScroll -> CanUseScroll
4 years ago
obligaron
6804221199
Store scroll/rune location in SpellCastInfo.spellFrom and remove the scroll/rune only after the spell is casted
4 years ago
obligaron
279e92e69c
Checks conditions for spell again, cause initial check was done when spell was queued
4 years ago
obligaron
1cfd1ca99d
Fix double casting bug - use separated info for casted and queued spells
4 years ago
Cesar Canassa
1bdee4523b
✨ Adds ignoreMovingMonsters to MonsterAtPosition ( #5118 )
4 years ago
ephphatha
0ce76a3f13
Add Object lookup method to mimic map::at()
4 years ago
Cesar Canassa
1d08d6b974
♻️ Replace dMonster usage on DoAttack ( #5137 )
4 years ago
DakkJaniels
9403084d41
Fix ModifyPlrMag
...
Used BaseStr instead of BaseMag
4 years ago
Gleb Mazovetskiy
2ca6a3e8eb
`Player#getGraphic`: Remove `MyPlayer` check
...
We always have `_pSpell` when this function is called.
4 years ago
Gleb Mazovetskiy
b21ebffaf2
Clean up player graphic loading
4 years ago
Anders Jenbo
56915974d6
Minimize passing of player indexes
4 years ago
Anders Jenbo
d1189388f5
Use user by reference
4 years ago
Mikołaj Piróg
262fa9ac2d
Rename MonsterData members ( #5000 )
4 years ago
Anders Jenbo
ac2bf9aaac
Limit what gets called in headless mode
4 years ago
obligaron
ebfb519ee0
Rename gbQuietMode to HeadlessMode
4 years ago
Cesar Canassa
ce349789cf
♻️ Refactor M_StartKill to receive a Monster reference ( #4943 )
4 years ago
ephphatha
1337ff6ea2
Add check if a monster potentially has leashed minions
4 years ago
Gleb Mazovetskiy
33ac2cca8e
♻️ Make Monster counters `size_t`
4 years ago
Anders Jenbo
3d08f951d6
Clean up use of miniwin
4 years ago
Anders Jenbo
3ae834148a
Split event handeling from general miniwin features
4 years ago
Anders Jenbo
2d21fc372e
Remove more miniwin code
4 years ago
Trihedraf
5ee6e5dd3a
Make zoom a setting in the menu ( #4931 )
4 years ago
qndel
7ca9c8ba3c
fix compiling in VS2019
4 years ago
Anders Jenbo
6a8fd04067
Use player by references ( #4938 )
4 years ago
Stephen C. Wills
4398c1e06a
Use absolute coordinates for temp position when north-walking ( #4937 )
4 years ago
Gleb Mazovetskiy
197e1180b2
Add StrCat and StrAppend
...
Adds simple string / integer concatenation functions.
Many of the uses of `fmt::format` are simply concatenation
of a few strings and integers.
`StrCat` is an easier-to-read alternative to such uses of `fmt`.
4 years ago
ephphatha
1fb45a7f25
Take Player reference in FixPlrWalkTags
4 years ago
ephphatha
7a8fa64e69
Include leftover coinflips following conflict resolution
4 years ago
ephphatha
420a248e0c
Use FlipCoin for most uses of GenerateRnd with variable frequency
4 years ago
staphen
17a12e273a
Restore vanilla Diablo behavior for elemental damage on weapons
4 years ago
staphen
cab75ded6b
Check both SPL_NULL and SPL_INVALID to determine spell validity
4 years ago
Cesar Canassa
e538acb248
📝 Fixes Doxygen warnings ( #4904 )
4 years ago
Mikołaj Piróg
15989609a8
Members' name changes and comments in Monster struct ( #4861 )
4 years ago
Cesar Canassa
0d106beaf3
♻️ Refactor M_StartHit to receive a Monster reference
4 years ago
Mikołaj Piróg
dda0b96ea5
Remove #defines in player.h and add constexpr where applicable ( #4896 )
...
* Change defines to constexpr int in player.h
* Add const or constexpr to player.h/cpp where applicable
* Update tests with changed names of player constatns
* remove unecessary variable
4 years ago
Cesar Canassa
76da2d14c9
Remove monsterId from M_GetKnockback ( #4882 )
4 years ago
obligaron
4db1c6f315
Make DirectionSettings::offset match ActorPosition::offset2 ( #4883 )
4 years ago
Anders Jenbo
0b7ad34c9d
Take player by reference in StartWalkStand and RemovePlrMissiles ( #4874 )
4 years ago
Cesar Canassa
6579aa53c5
Normalise the player and monster walking function naming ( #4877 )
...
Both player and monster walking functions are not named WalkNorthwards, WalkSouthwards and WalkSideways.
Also renames the PLT_MODE enum to follow the same pattern and removes the comments that are now unnecessary
4 years ago