Mikołaj Piróg
15989609a8
Members' name changes and comments in Monster struct ( #4861 )
4 years ago
Gleb Mazovetskiy
17f8cdddc4
Clean up `GetSpellLevel`
...
Remove the buggy `GetSpellLevel` implementation and use
`Player#GetSpellLevel` throughout instead.
4 years ago
Anders Jenbo
b00ae287b8
Minimize propegation of global Players index
4 years ago
Gleb Mazovetskiy
72660d9189
Migrate snprintf to fmt ( #4845 )
...
* Migrate `app_fatal` from printf to libfmt
* Migrate snprintf to fmt
4 years ago
k-bar
c2432d23e8
Berserk light fix
4 years ago
Gleb Mazovetskiy
5d1a4fd8af
`IncProgress`: Do not render bar if not active
...
Loading the game from within the game calls `IncProgress` multiple times
but we should not render the progress bar when that happens.
4 years ago
Anders Jenbo
99181fd709
Move more files to the engine folder
4 years ago
ephphatha
c68fcf3cb1
Apply MethodCase config to Rectangle::Contains
...
Also included Circle and VirtualButton classes due to the shared use.
4 years ago
Anders Jenbo
6d56058708
Move level generation to subfolder
4 years ago
ephphatha
3af11ad355
Use the same function when checking and actually dropping an item
4 years ago
Anders Jenbo
98e4310cad
Index Minis by tile instead of by coordinate
4 years ago
Anders Jenbo
860bd1cebf
Operate directly on SOL data
4 years ago
obligaron
184290a977
Support setlevel in multiplayer
4 years ago
obligaron
19749420b5
Introduce Player::isOnActiveLevel
4 years ago
obligaron
7afe7d2a70
Save Methods in loadsave gets MpqWriter passed
4 years ago
Gleb Mazovetskiy
1fc8ecb6f6
Add fmt::runtime annotations for C++20 support
...
`fmt` requires non-contexpr format string arguments to be wrapped in
`fmt::runtime` in C++20.
4 years ago
Anders Jenbo
1203514383
Clean up use of currlevel
4 years ago
Anders Jenbo
54cd839cf6
Clean up drlg tests
4 years ago
obligaron
1608219b39
Timedemo: Create reference save game and allow comparing of reference save game with actual timedemo save game
4 years ago
qndel
354e329644
Players[MyPlayerId] -> MyPlayer
4 years ago
obligaron
bc15bdf3a9
Remove PANEL_ defines and replace them with GetMainPanel()
4 years ago
obligaron
2b0b944afb
Manage friendly mode per player and sync state between clients
4 years ago
obligaron
70c5cf6cad
Fix item label text with open stash ( #4595 )
...
* Item labels: check if stash is open in IsMouseOverGameArea
* Add IsLeft/RightPanelOpen
4 years ago
Gleb Mazovetskiy
85f0802f01
printInConsole: Add string_view support
...
Also print `\r\n` instead of `\n` on Windows.
4 years ago
Anders Jenbo
9d082389d8
Clean up music track selection
4 years ago
Anders Jenbo
0645d9b2a1
Correct missing hellfire level mapping in leveltype
...
Hellfire never added the 2 new dungion types, instead it makes
additional checks on currlevel. This is confusing and mess, so cleaned
it up.
4 years ago
ephphatha
7f15aa730d
Move definition of ghMainWnd to utils/display.cpp
...
This variable is controlled/set by the code in that file, this also lets other files have more specific/relevant includes instead of the monolith that is diablo.h
4 years ago
staphen
2ebd80c8e8
Use ifdef when checking for _DEBUG
4 years ago
staphen
0bbb7a1572
Initialize options before first call to SaveOptions()
4 years ago
ephphatha
0cfd0e194a
Refactor TryDropItem to reduce use of globals
...
The way TryInvPut and DropItemBeforeTrig interacted was fragile, don't think this would've worked as expected at the best of times. Looks like it was added as part of controller support so guessing this isn't vanilla behaviour anyway.
4 years ago
obligaron
d921fb3e97
Throttle send player commands to avoid desyncs
4 years ago
Anders Jenbo
dc706e8ed5
Use HoldItem for determining if an item is held
...
This cleans up a bit of code and solves a few edge cases where an item
could be lost, the game be unresponsive, or miss fire an event during
lag cause of the cursor not reflecting the currently held item.
4 years ago
Brandon Cullen
926f6b44bc
Minimize direct usage of Lights[] global
4 years ago
Gleb Mazovetskiy
b312edee49
Fix snd_deinit called even if snd_init failed
...
We were previously setting `was_sound_init` to true unconditionally
after calling `snd_init`.
However, `snd_init` can fail. Use `gbSndInited` instead.
4 years ago
Gleb Mazovetskiy
80599319bc
Don't hide the automap in Help and Chat Log ( #4379 )
...
This was necessary in the past due to stippled transparency but we use
blended transparency now.
Fixes #4355
4 years ago
qndel
4f491cba6f
allow remapping P for pause and always treat pause button as pause
4 years ago
Anders Jenbo
2575f76bbd
Make 'quit game' return to the main menu when NOEXIT is set
4 years ago
Drakker
3039b760e1
Added more Quickspell hotkeys for a total of 16. Saving will write the number of configured quickspell slots at the beginning of the hotkeys file. The loader will check the size, if its bigger than older saves should be it will load the header and read the hotkeys, otherwise it will load 4 quickspells for compatibility.
4 years ago
Andrew James
028c5945b8
Add helpers to change stash pages ( #4287 )
4 years ago
ephphatha
9326eccbc3
Only attempt to cast heal other/resurrect with a target
4 years ago
ephphatha
25c2123849
Change cursor after acknowledging attempt to cast spell
...
This matches the behaviour of other targeted spells, however the mana is wasted because it is spent when readying the spell.
4 years ago
obligaron
b52a50f2e7
Add OptionEntry for alternative nest art and remove command line parameter --nestart
4 years ago
Anders Jenbo
e2fef44c9f
Close gold withdraw when closing stash
4 years ago
obligaron
481f15ded5
Introduce StashStruct.GetPage/SetPage
4 years ago
Anders Jenbo
1409e604f5
Reduce string conversions
4 years ago
obligaron
69e61192ee
Add UseStashItem to RightMouseDown
4 years ago
obligaron
5659525ed2
Simplify RightMouseDown handling
4 years ago
obligaron
ef7966393b
Enable apply oil on stash items
4 years ago
obligaron
9183b6fa57
Enable recharge on stash items
4 years ago
obligaron
1f866bd53b
Enable repair on stash items
4 years ago