Anders Jenbo
d392f70509
🎨 Do not pass item lists by value
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
qndel
f1b85a5cd3
cleanup
5 years ago
Anders Jenbo
a9874d65c1
♻️ Remove SDL types from player header
5 years ago
Anders Jenbo
373f28736f
🎨 Acceptable parts of modernize-*
5 years ago
Anders Jenbo
bb4e1960e7
🎨 modernize-use-nullptr
5 years ago
qndel
202ac36a52
golems, dont fight each other
5 years ago
Anders Jenbo
c89bd9c001
🚨 Fix remaning warnings for clang and gcc
5 years ago
Anders Jenbo
5fdb9ce459
🎨 Format code
5 years ago
Anders Jenbo
946ff5b0fa
♻️ Performe static casts when load save game data
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
staphen
4faf09c2df
Consolidate logic for Mana Shield and player damage.
5 years ago
qndel
8aecfc9f6f
bugfix comment
5 years ago
Gleb Mazovetskiy
95946e3a7c
🧹 Cleanup unused variables ( #1584 )
...
Fixes `unused-variable` and `unused-but-set-variable` compiler warnings.
5 years ago
Anders Jenbo
997c1dba55
🚚 Split up all.h in to proper header relations
5 years ago
Anders Jenbo
6e1a106a38
🚚 Move header we implement into the project
5 years ago
Anders Jenbo
f450d6a125
🚚 Move defines to there proper files
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
6cfcc4708e
♻️ Simplify Diablos health adjusment.
5 years ago
Anders Jenbo
2732aea1b2
♻️ Use GameInfo instead of individual globals
5 years ago
Anders Jenbo
61244c4d93
♻️ Rearange and apply more enums
5 years ago
Anders Jenbo
4f8b5e2f5f
🎨 Correct style of true comparisons
5 years ago
Anders Jenbo
36ebd857ad
🎨 Correct style of false comparisons
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
4ee84aea1a
♻️ Change BOOLEAN to bool
...
fixup BOOLEAN
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
0953b3524e
🚨 Resolve monster.cpp clang warnings
5 years ago
Robin Eklind
9e489df41d
monster: add BUGFIX for DeleteMonsterList
...
Golems should only be pseudo deleted, as their monster array
indices are special and should not appear in the available
monster index list.
5 years ago
Juliano Leal Goncalves
800dbce066
♻️ Move options-related structs to new 'options.h' file
5 years ago
Anders Jenbo
fbd86cd3c5
🎨 Mark noreturn functions as such
5 years ago
Anders Jenbo
3936f2f088
♻️ Initialize type with nullptr
5 years ago
Anders Jenbo
b68ad9394b
🚨 Fix warning about reaches end of non-void
...
Techinically this coudn't happen, unless someone added another monster
type
5 years ago
Juliano Leal Goncalves
1bf3fd6f35
🚩 Add ini toggle for displaying monster type. Disabled by default.
5 years ago
Juliano Leal Goncalves
1a8e09a7f5
✨ Expose monster types on monster info
5 years ago
Anders Jenbo
38fdf34c14
💄 Apply code style
5 years ago
Anders Jenbo
17803d5923
♻️ Apply proper types to PlayerStruct
5 years ago
Anders Jenbo
8b8caf5a7e
🐛 Fix quests not activating on Windows
...
Compare _uniqtype instead mName
Fixes #1152
5 years ago
Anders Jenbo
ad867a2f2b
💚 Fix 3DS build
5 years ago
Anders Jenbo
def2253386
♻️ Move monster.h related structs and enums and apply propper types
5 years ago
Anders Jenbo
d6ec6395e0
♻️ change QuestTalkData in to an array of _speech_id
...
This gets rid of casting QuestTalkData to DWORD/int in various parts of
the code.
5 years ago
Anders Jenbo
1284333765
♻️ Use explicit types and remove globals from save file logic
5 years ago
Robin Eklind
45dd962f27
monster: add BUGFIX for M_WalkDir
...
MWVel velocity values are not rounded consistently (inconsistent use of
floor and ceil). The original formula is (for 16, 32 and 64 pixels of
movement, respectively):
vel16 = (16 << monsterWalkShift) / nframes
vel32 = (32 << monsterWalkShift) / nframes
vel64 = (64 << monsterWalkShift) / nframes
The BUGFIX comment contains updated monster walk velocity values for
the MWVel table, where the formala is calculated as above with consistent
rounding to nearest integer.
5 years ago
Robin Eklind
21e860df77
monster: add BUGFIX to M2MStartKill
...
Also, correct minor typo in BUGFIX of M2MStartHit. The DevilX code
is correct in M2MStartHit (the Devilution comment used
`<=` rather than `<`).
Both were related to the special handling of golem monster numbers.
Having golems occupy the first 4 monster number slots feels like
such a lovely hack :P
5 years ago
Robin Eklind
b11d675543
monster: add BUGFIX for M_FallenFear
...
The index used to access monster was incorrect for the fallen
one flee behaviour. The AI should make fallen ones flee from
the direction of the monster which got hit. Right now, it's
random as the wrong index is used.
5 years ago
Anders Jenbo
39999791b3
Revamp ini options and sync in multiplayer
...
[NetMsg]
F12=Now you DIE!
F11=Here's something for you.
F10=Follow me.
F9=I need help! Come Here!
[Game]
Speed=50
Fast Walk=1
Grab Input=0
Theo Quest=0
Cow Quest=0
[Audio]
Sound Volume=0
Music Volume=0
Walking Sound=1
[Graphics]
Fullscreen=1
Fit to Screen=1
Scaling Quality=2
Integer Scaling=0
Vertical Sync=1
Blended Transparency=1
Gamma Correction=100
Color Cycling=1
[Diablo]
Intro=0
[Hellfire]
Intro=0
SItem=
[Phone Book]
Entry1=127.0.0.1
[Network]
Bind Address=0.0.0.0
5 years ago