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
Anders Jenbo
32a51d17ca
Align function signatures with PSX symbols
...
Using
https://github.com/diasurgical/scalpel/tree/master/psx/_dump_/3/_dump_c_src_/diabpsx/source
as a reference
7 years ago
Anders Jenbo
66438890aa
Clean up spells.cpp
7 years ago
galaxyhaxz
610580625e
Split data from files
7 years ago
galaxyhaxz
540892ff9d
Preliminary support for fixed header files
7 years ago
galaxyhaxz
4e01e03711
Cleanup default calling conventions
7 years ago
Xadhoom
5283a9ffd1
Put everything into namespace dvl
7 years ago
Xadhoom
fa90e6720a
Revert random_ to random and remove extern "C" linkage
7 years ago
Xadhoom
3dd6cf1671
First try, merge compiles, but immediate crash
7 years ago
Anders Jenbo
429ececce0
Fix debug build as C ( #566 )
...
* Clean up todo
* Fix debug build
7 years ago
Anders Jenbo
024d99fc9e
C compatability from s ( #521 )
7 years ago
Anders Jenbo
0fb5c0bf9c
Additional tab indentation
7 years ago
Anders Jenbo
b1f6d3698f
Update style to use tabs
8 years ago
Anders Jenbo
f1d4e707f7
Auto format
8 years ago
Anders Jenbo
4708345d31
Align spelldata data table
8 years ago
Robin Eklind
7515655efb
Run format.sh
8 years ago
Anders Jenbo
744e225618
Clean up player.cpp ( #387 )
8 years ago
aperturesecurity
42ce77ce05
Rebirth and Nuke
8 years ago
Andrew Dunstan
344d259066
make DoHealOther bin exact
8 years ago
squidcc
4ed6d83265
fix regression in DrawSpellList() that caused only the first 1/4 spells to be drawn ( #355 )
...
fix places where sTownSpell was still being cast to DWORD
change SpellData::sTargeted to BOOL, fix spelldata[] definition to use TRUE/FALSE
8 years ago
Anders Jenbo
b7dfcf5ed5
Clean up CheckPlrSpell ( #339 )
8 years ago
Andrew Dunstan
71cae5f8c2
add enums for known actions (to be performed in response to commands)
8 years ago
Anders Jenbo
db77557dce
ValidatePlayer ( #318 )
...
* ValidatePlayer
* Add MAX_SPELLS define
8 years ago
Anders Jenbo
e05679b1c9
Clean up ProcessPlayers ( #319 )
...
* Clean up ProcessPlayers
* Change drawhpflag and drawmanaflag to BOOL
8 years ago
Dennis Duda
b23f92805c
DoHealOther is now almost binary exact, except for the flipped usage of `esi` and `edi`.
8 years ago
Dennis Duda
855bb4a42a
PlacePlayer is now binary exact
8 years ago
Dennis Duda
8adb2b83c8
DoResurrect is now binary exact
8 years ago
Dennis Duda
84120afd83
Cleaned up CheckSpell and CastSpell, now both binary exact!
8 years ago
Dennis Duda
6776b568c0
`GetManaAmount` is now binary exact
8 years ago
Dennis Duda
b6baa965bb
Revert "Switched back `NewCursor` to the original name `j_SetCursor`"
...
This reverts commit 4c93cca082 .
NewCursor was the actual name, j_<function> are just remaining
reversing names
8 years ago
Dennis Duda
4c93cca082
Switched back `NewCursor` to the original name `j_SetCursor`
8 years ago
Dennis Duda
0200a2abba
Refactored spells.cpp ( #147 )
...
Finished refactoring spells.cpp, modifying other files only as needed.
Some functions are 99% binary exact now, like PlacePlayer, for example.
Added notes/TODOs for places with remaining discrepancies.
8 years ago
galaxyhaxz
5506504860
Update spells.cpp
8 years ago
Dennis Duda
153495d82d
Rewrote GetManaAmount to result in the same decompiled code as Diablo ( #135 )
...
* Rewrote GetManaAmount to result in the same decompiled code as the original function.
Fixed the type of `PlayerStruct->pClass`. Thank you @galaxyhaxz for all the help getting into it :)
* Renamed everything back to their original names
8 years ago
galaxyhaxz
49a6f4f9fc
Add include guards, prepare for XRef ( #28 )
...
Add definitions, other junk.
8 years ago
galaxyhaxz
bb01c6f084
Remove the "fear factor" ( #21 )
...
Snakes, spiders, Demons, what scares you?
8 years ago
galaxyhaxz
bcb3abe96b
Add files via upload
8 years ago