Anders Jenbo
0c2042fa52
♻️ Player by reference
...
Update Source/items.cpp
Update Source/lighting.cpp
Update Source/pack.cpp
asd
ads
as
5 years ago
thebigMuh
f3d87730ee
Reenabling Elemental spell for Hellfire ( #1901 )
5 years ago
Juliano Leal Goncalves
39736e2538
♻️ Pass 'PlayerStruct' pointer to 'ClrPlrPath'
5 years ago
Anders Jenbo
2bd13451a1
♻️ Apply point positioning to all remaning entities
5 years ago
Anders Jenbo
7912e510f0
🎨 Clean up overuse of SDL types
5 years ago
Anders Jenbo
275404029e
♻️ Cleanup player temp variables
5 years ago
Anders Jenbo
e4cfad3196
♻️ Use points instead of individual fileds for player structure
5 years ago
Anders Jenbo
a32ac83090
🎨 cleanup trivial trype comparisons
5 years ago
Anders Jenbo
593c6a6f17
🎨 Drop unused param and rename random_ to GenerateRnd
5 years ago
Jmgr
1d84156509
Simplify bitshift divisions/multiplications
5 years ago
Psojed
b31061ff83
Apply Sorcerer's mana cost reduction bonus only in Hellfire ( #1613 )
5 years ago
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.
5 years ago
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
Juliano Leal Goncalves
28ad9d43c5
🎨 Rename 'plr_class' enum to 'HeroClass'
...
Members were renamed as well for readability.
5 years ago
Juliano Leal Goncalves
7d95bfed39
♻️ Convert 'plr_class' to a scoped enumeration
5 years ago
Anders Jenbo
61244c4d93
♻️ Rearange and apply more enums
5 years ago
Anders Jenbo
20186e0370
🎨 Replace TRUE/FALSE with true/false
...
fix
Fix
fix
5 years ago
Anders Jenbo
93d42b62b8
♻️ Change BOOL to bool
5 years ago
Anders Jenbo
bfb3c11c2b
🎨 Change namespace to devilution
5 years ago
Anders Jenbo
630e507f63
🚚 Apply namespace
5 years ago
Anders Jenbo
6f1498d315
🚚 Move structures to there respective headers
5 years ago
Anders Jenbo
bba73ea20f
✨ Handle mixed item origins in multiplayer
5 years ago
Anders Jenbo
31467cc949
♻️ Remove all usage of basic WIN32 types
...
Note that several WinAPI types are still in use (misc.h)
5 years ago
Anders Jenbo
17803d5923
♻️ Apply proper types to PlayerStruct
5 years ago
Anders Jenbo
fdf5d514b6
Remove redundant code from CastSpell
5 years ago
Anders Jenbo
8c261d0966
Merge remaning clean Hellfire code paths
5 years ago
Anders Jenbo
e609e170d0
Merge a large chunk of Hellfire the code paths
5 years ago
Anders Jenbo
504bd44abc
Simplify ClearReadiedSpell
...
Setting force_redraw twice has no negative side and saves us a bool check later.
5 years ago
Juliano Goncalves
00f3b753ee
Extract valid readied spell logic
5 years ago
qndel
7f7ae623df
Goe ( #2163 )
...
* proper random_ comparisons
* proper mienemy comparisons
* add mienemy/micaster enum
* GOE enum
5 years ago
Anders Jenbo
e073422ce7
Unify executable for Spawn and Retail
...
The game will now autodetect if it should run in shareware mode or full
retail based on the found mpq file. Additionally it can beforced in the
shareware mode with --spawn even if the retail data is found.
This simplifies a lot of the spagetty code and lets us better refactor,
also worth noteing is that we won't have to setup a secound set of build
tests.
5 years ago
Anders Jenbo
fbf0713185
Correct Firebolt manacost
...
This partially reverts 4b74890489
Thanks to @Orthotope for pointing this out
6 years ago
Anders Jenbo
1d3f0aa103
Correct Firebolt manacost
...
This partially reverts 4b74890489
Thanks to @Orthotope for pointing this out
6 years ago
Anders Jenbo
1ba96a6777
Add doxygen description to remaining engine files
6 years ago
Anders Jenbo
f1c216e688
Make player struct x/y fields match monster struct
6 years ago
qndel
5191237f42
enums and stuff ( #2024 )
6 years ago
Anders Jenbo
20621a0642
add all.h and use in place of diablo.h ( #2005 )
...
Now diablo.h is treated in the same way as all other header files of
Source, as it only contains the declarations of global variables and
functions of diablo.cpp.
Besides consistency, this also enables mods to include diablo.h just
like any other header file without having to include every header file
(and without having to include C++ specific aspects of the now all.h).
6 years ago
Anders Jenbo
5fa0c5781b
Backport cleanups from Hellfire branch
6 years ago
Anders Jenbo
4b74890489
GetManaAmount prevent shift of negative value
...
Also make GetManaAmount more readable
Thanks to @glebm for finding the issue
6 years ago
galaxyhaxz
3bd28cc0c1
Fix function order [spells+pack.cpp]
6 years ago
Robin Eklind
e155a9423e
rename random to random_ to avoid collision with random in stdlib.h
...
Fixes #1813 .
6 years ago
qndel
13eb926575
[hellfire] GetManaAmount bin exact
7 years ago
qndel
25cb639e17
[hellfire] CastSpell bin exact
7 years ago
qndel
1516ad57ac
GetManaAmount cleanup ( #1737 )
7 years ago
qndel
449b9fd2dc
CastSpell cleanup
7 years ago
qndel
f7c90653bd
[hellfire] DoHealOther bin exact
7 years ago
qndel
07233d060d
[hellfire] DoResurrect bin exact ( #1629 )
...
* [hellfire] DoResurrect bin exact
* split into two ifndefs
7 years ago
qndel
7ab48ad756
UseMana clean up
7 years ago
qndel
a17e34c4bf
applied enums to _pmode and untangled ifs
7 years ago
Robin Eklind
f59439a8ff
Make _pInvincible into a boolean.
...
_pInvincible is only ever used in boolean contexts.
7 years ago