Commit Graph
295 Commits
Author SHA1 Message Date
Anders Jenbo a68c10edf2 Document another Hellfire bug 2020-12-31 04:35:15 +01:00
Anders Jenbo f884d8b06a Fix more compiler warnings 2020-12-12 08:11:57 +01:00
qndel 7f7ae623df Goe (#2163)
* proper random_ comparisons
* proper mienemy comparisons
* add mienemy/micaster enum
* GOE enum
2020-12-04 19:16:58 +01:00
qndel a597e6d0d5 fix compiling (#2166) 2020-12-04 08:31:45 +01:00
Anders Jenbo 38dbcf7641 Format source 2020-12-02 00:52:38 +01:00
qndel e34ac43457 SyncMonsterAnim bin exact 2020-11-12 16:21:07 +01:00
qndel f137159b8d monsters cleanup 2020-11-10 20:12:55 +01:00
SourceCodeDeleted 39a9ada5ff [Hellfire] DoEnding BinExact (#2151) 2020-11-08 22:53:05 +01:00
qndel 3ce3dedd4d Cleanup (#2147) 2020-11-07 12:34:07 +01:00
qndel c94c04d049 some cleanup (#2146) 2020-11-04 03:33:40 +01:00
Anders Jenbo dca5a135b6 Reorder monster.cpp 2020-11-03 19:26:03 +01:00
Anders Jenbo 2867b811c0 Fix incorrectly mapped functions in hellfire 2020-11-02 18:28:24 +01:00
qndel fa0b326498 unify names 2020-10-24 08:07:56 +02:00
Anders Jenbo 8b877603a8 Fix spawning NaKrul 2020-10-22 23:51:19 +02:00
qndel 36dba1cc1c cleanup (#2127) 2020-10-22 17:26:24 +02:00
Anders Jenbo 7e04c63977 Merge branch 'hellfire' of github.com:diasurgical/devilution 2020-10-11 23:53:07 +02:00
pionere 92cc9d589c Apply another bunch defines 2020-10-11 06:42:13 +02:00
pionere f0a51ccf65 use defs instead of literals 2020-10-11 06:37:14 +02:00
pionere f6d16b4907 UCHAR_MAX to squelch 2020-09-28 01:55:03 +02:00
Anders Jenbo 8272a37aea Add connection state and player state enums 2020-09-25 06:47:11 +02:00
Robin Eklindandqndel 85ece87a75 Update Source/monster.cpp
Co-authored-by: qndel <[email protected]>
2020-07-16 00:06:28 +02:00
Robin Eklind 7b63273336 monster: add BUGFIX comment to DirOK
The issue here is probably very unlikely to trigger anything in-game, as
the first 4 monster array elements are reserverd for golems. However,
after executing the body of the `if (mi != 0) { mi-- }` if-statement,
it is not possible to determine whether mi was 0 or 1 before executing
the body. This is relevant as the pack member check should only be
performed if mi was non-zero prior to executing the body of the
if-statement.

A fixed may look something as follows:

	if (mi != 0) {
		mi--;
		// BUGFIX: should only run pack member check if mi was non-zero prior to executing the body of the above if-statemnet (fixed).
		if (monster[mi].leaderflag == 1
		    && monster[mi].leader == i
		    && monster[mi]._mfutx == x
		    && monster[mi]._mfuty == y) {
			mcount++;
	}
2020-07-16 00:06:28 +02:00
Robin Eklind 7cabbb43f6 monster: add BUGFIX to MAI_Golum
The dMonster array stores monster array index numbers + 1
(or the corresponding negative version -(index + 1)).
Prior to use, these must be decremented by 1.
2020-07-16 00:06:28 +02:00
Anders Jenbo c1b4d3d8b5 Copy documentation from sanctuary/notes 2020-07-06 05:43:25 +02:00
Anders Jenbo 36e319cb7f Add bugfix to MonstStartKill 2020-06-06 20:03:27 +02:00
Anders Jenbo f066b57cd0 Merge master in to hellfire 2020-04-09 02:14:08 +02:00
Anders Jenbo 2ec7c78eae Format source 2020-04-08 22:28:53 +02:00
Anders Jenbo c384711a5f Backport cleanups from hellfire branch 2020-04-08 20:16:32 +02:00
Anders Jenbo e6e0ebe15a Merge branch 'master' of github.com:diasurgical/devilution into hellfire 2020-04-07 03:46:20 +02:00
Anders Jenbo f1c216e688 Make player struct x/y fields match monster struct 2020-04-07 03:26:38 +02:00
Anders Jenbo b040c04a18 Merge branch 'master' of github.com:diasurgical/devilution into hellfire 2020-04-04 07:56:06 +02:00
galaxyhaxz c632e2d1d0 Names and bug fixes (#1974) 2020-03-12 04:32:53 +01:00
Anders Jenbo ba084d25a6 [hellfire] PostOkMonst, PostOkMonst2, PostOkMonst3 and monster_posok 2020-03-12 04:30:27 +01:00
Anders Jenbo 86830baadc [hellfire] CheckMonsterHit 2020-03-12 04:29:18 +01:00
galaxyhaxzandRobin Eklind 71565b9c02 Several updates [enums+names] (#2002)
* Several updates

* Correct msg_get_next_packet

* Update enums.h

Co-Authored-By: Robin Eklind <[email protected]>

Co-authored-by: Robin Eklind <[email protected]>
2020-03-11 21:27:40 -05:00
Anders Jenbo 3c276a3cd3 Add documentation
- Add file documentation to about 1/4 of the files in Source
- Copy over a lot of the documentation from the sanctuary/notes repo
- Standardise all the existing documentation
- Create a configuration for Doxygen
- Add more documentation (engine.cpp is now fully documented)
2020-03-01 22:18:00 +01:00
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).
2020-02-14 13:12:54 +01:00
Anders Jenbo 09c41c666f Update monster.cpp 2020-02-01 13:57:53 +01:00
Anders Jenbo 5cd7958438 [hellfire] monster_43C785 2020-01-20 16:25:01 +01:00
Anders Jenbo e3e7451a84 [hellfire] SpawnLoot 2020-01-18 15:37:57 +01:00
Anders Jenbo e7416ce7dd [hellfire] MonstStartKill 2020-01-18 15:37:57 +01:00
Marco 29b9c99e5a added some more values from enums (#1955) 2020-01-14 17:30:13 +01:00
Anders Jenbo 2751ecedd2 [hellfire] Add missing enums 2020-01-12 18:04:40 +01:00
qndel 09cf5546a9 Fix PlaceUniqueMonst bin exact 2020-01-12 05:59:58 +01:00
Anders Jenbo 1b19118d1f [hellfire] Add _uniq_monsterid and dungeon_type 2020-01-03 00:12:41 +01:00
Anders Jenbo de02a0e870 Merge branch 'master' of github.com:diasurgical/devilution into hellfire 2020-01-02 23:59:21 +01:00
qndel d961599456 [hellfire] TalktoMonster bin exact 2020-01-01 17:25:39 +01:00
qndel f20c3df0c3 [hellfire] CanTalkToMonst bin exact 2020-01-01 17:25:17 +01:00
qndel a5fb1f4cf8 [hellfire] PlaceQuestMonsters bin exact 2020-01-01 17:24:32 +01:00
qndel a0a658951d [hellfire] PlaceUniqueMonst bin exact 2020-01-01 17:18:30 +01:00