Commit graph

28 commits

Author SHA1 Message Date
Dennis Duda
2a492cf9c3 Merge remote-tracking branch 'devilution/master' 2018-08-23 18:06:00 +02:00
galaxyhaxz
5ed2336e90
Fix types of animation data (#176) 2018-08-22 23:15:16 -05:00
Dennis Duda
9d31a6e29c Flip check in AddMonsterType to make it near binary perfect 2018-08-20 01:41:34 +02:00
Dennis Duda
50cbbded0c Flipped setlevel check for better matching with the original binary 2018-08-20 01:40:54 +02:00
Dennis Duda
4391b247a8 Moved monst->MData to temporary variable to get the code very close to the original 2018-08-20 00:54:36 +02:00
Dennis Duda
302d1c6507 Flipped branches of PlaceQuestMonster to make it near byte-perfect. 2018-08-20 00:19:07 +02:00
Dennis Duda
22fcf9a074 Fixed stuff after rebase 2018-08-19 23:27:37 +02:00
Dennis Duda
834db70385 Cleaned up PlaceGroup 2018-08-19 23:20:55 +02:00
Dennis Duda
2e3a2f7544 Cleaned up PlaceUniqueMonst 2018-08-19 23:19:11 +02:00
Dennis Duda
375d0d469b Fixed InitMonsterGFX, it now actually works! 2018-08-19 23:18:46 +02:00
Dennis Duda
0603e3e042 Cleaned up InitMonsterGFX, InitMonster, MonstPlace 2018-08-19 23:18:46 +02:00
Dennis Duda
66f522f34e Small corrections/cleanups (thanks @galaxyhaxz :))
- Removed the `mt` variable since it didn't exist in the earlier PSX version
- Replaced raw constants with the proper defines
- Reworked the likely use of `numskeltypes`.
- Added `NUM_MTYPES` to `_monster_id` to represent the number of monster types
2018-08-19 23:18:46 +02:00
Dennis Duda
4c4fe6834c Fixed missing quest enum value. 2018-08-19 23:18:46 +02:00
Dennis Duda
5d03a27248 Cleaned up GetLevelMTypes.
This had interesting compiler optimizations like
local array merging, which threw off IDA a bit.
By looking into older versions and the PSX symbols
I'm pretty sure I found the correct sizes for both arrays.

There are still minor differences, such as different parameter
loading for function calls. In other places, this solved itself with
time. (VC seems to generate different code base on a lot of
things, even down to alignment).
2018-08-19 23:18:43 +02:00
Dennis Duda
d78ffef5fa Cleaned up InitLevelMonsters and AddMonsterType 2018-08-19 23:18:22 +02:00
Dennis Duda
f5675d7fec Fixed formatting in InitMonsterTRN 2018-08-19 23:18:22 +02:00
Dennis Duda
df44956a78 Cleaned up InitMonsterTRN.
Including changed types used by that function.
2018-08-19 23:17:57 +02:00
galaxyhaxz
fa64b2148d
Add defines [W.I.P] (#160) 2018-08-15 22:13:15 -05:00
galaxyhaxz
775ae59e18
Fix function signatures and others (#158)
Fix InitObjects, themes.cpp, names
2018-08-12 18:32:48 -05:00
galaxyhaxz
a336c38226
Fix random(idx,v) calls (#157) 2018-08-10 22:45:32 -05:00
galaxyhaxz
9f34a366a6
Fix decompilation of skeleton spawning (#152) 2018-08-03 08:40:45 -05:00
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.
2018-07-22 04:49:32 +00:00
galaxyhaxz
57e19cf1c0
Fix zhar quest, monster squelching, golem (#75) 2018-06-25 02:58:05 -05:00
galaxyhaxz
49a6f4f9fc
Add include guards, prepare for XRef (#28)
Add definitions, other junk.
2018-06-20 05:17:44 -05:00
galaxyhaxz
bb01c6f084
Remove the "fear factor" (#21)
Snakes, spiders, Demons, what scares you?
2018-06-18 19:16:32 -05:00
galaxyhaxz
bf2b23fc71
Fixed golem, now works perfect 2018-06-10 21:02:50 -05:00
galaxyhaxz
ffc8c38801
Update monster.cpp 2018-06-10 18:10:21 -05:00
galaxyhaxz
dde68ff89e
Add files via upload 2018-06-06 21:25:54 -05:00