Commit graph

53 commits

Author SHA1 Message Date
nomdenom
d14bf20467 Source: NO_GLOBALS support (for Miniwin) 2018-10-01 21:31:47 -07:00
squidcc
51bfa2353b Use quest enum values (#362)
* add/assign enums related to Black Mushroom quests

* plug in more quest enum values
2018-09-29 11:37:54 +02:00
Anders Jenbo
1e40fdf51e Clean PM_DoAttack & CanTalkToMonst (#311)
* Clean PM_DoAttack & CanTalkToMonst

* Fix friendly mode default
2018-09-24 16:21:56 +02:00
Anders Jenbo
7da6f4d08a Clean up PM_DoDeath (#317)
* Clean up PM_DoDeath

* Add enum for dFlags
2018-09-24 08:13:48 +02:00
Anders Jenbo
f055f7ba18 Adjust InitMonsterGFX
Fixes #20
2018-09-12 20:51:13 +02:00
Dennis Duda
6792078180 Merge remote-tracking branch 'devilution/master' 2018-09-10 20:44:41 +02:00
galaxyhaxz
38b498ac4b
Add 'const' to data to match original binary (#200) 2018-09-09 15:40:23 -05:00
Anders Jenbo
44b1349529 Clean up CheckMonsterHit 2018-09-09 15:35:39 +02:00
Dennis Duda
0cb555478f Merge remote-tracking branch 'devilution/master' 2018-09-08 19:01:49 +02:00
galaxyhaxz
503e5c1440
Names from DX SDK (#197) 2018-09-08 10:15:26 -05:00
Anders Jenbo
5b1aa609fc Clean up InitMultiView 2018-09-08 17:07:09 +02:00
Anders Jenbo
31637532c9 Redefine nSolidTable as BYTE
Cleans PosOkMissile, CheckNoSolid, SolidLoc and LineClear
2018-09-08 17:07:09 +02:00
Anders Jenbo
fe3b0a9d09 Clean up DoEnding 2018-09-06 16:45:39 +02:00
Robin Eklind
5d46965fa2 Fix loading of TRN for unique monsters.
Fixes #31.
2018-09-04 13:48:03 +02:00
Dennis Duda
0b5aef5edb PlaceGroup is now near binary-exact 2018-09-02 19:23:37 +02:00
Dennis Duda
8bd518031b Added LIGHTSIZE constant 2018-09-02 18:57:23 +02:00
Dennis Duda
5de0a5083b PlaceUniqueMonst is now near binary-exact.
It's just the both struct pointers that seem to load a bit differently.
2018-09-02 18:30:29 +02:00
Dennis Duda
0f0bb1c713 PlaceMonster is now binary exact 2018-09-02 14:42:02 +02:00
Dennis Duda
7c75240c1e MonstPlace now binary exact. 2018-09-02 14:29:05 +02:00
Dennis Duda
ca0e341de2 Merge remote-tracking branch 'devilution/master' 2018-09-01 14:04:02 +02:00
galaxyhaxz
f49117c95a
Update monster.cpp 2018-09-01 00:43:12 -05:00
Dennis Duda
ad59011c64 Shuffled things around in InitMonster to make the ordering closer to the beta, and making it binary exact 2018-08-29 03:21:04 +02:00
Dennis Duda
16a576cd5b Brought GetLevelMTypes very close to binary exact 2018-08-29 01:47:35 +02:00
Dennis Duda
cf81adbd47 Minor adjustments to InitLevelMonsters and AddMonsterType 2018-08-29 01:47:35 +02:00
Dennis Duda
4461f657c3 Made InitMonsterTRN binary exact. 2018-08-29 01:47:35 +02:00
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