Reverse engineering Diablo v1.09b (last patch)
#23
(01-30-2018, 12:23 AM)TheKillerVortex Wrote: Here's an explicit question:

Are 0x1D and 0x19 hard-coded values describing the "entry" of the maze-generation? To guarantee that the stairs themselves are in a room with possible exiting cells?

They are indeed hard-coded values.

The actual entrance is added in trigs_init_warps_town:

Code:
warps[0].entrance_x = 25; // ref: 0x4619C1
warps[0].entrance_y = 29;

and for the description text on mouse hover, the mouse X-Y map coordinates are set in trigs_set_stairway_text_town.

Code:
strcpy(description_line, "Down to dungeon");
cursor_x = 25; // ref: 0x462049
cursor_y = 29;

Also, take a look at the global variable warps and the Warp struct.
Reply


Messages In This Thread
RE: Reverse engineering Diablo v1.09b (last patch) - by mewmew - 02-15-2018, 01:33 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)