Rework stairs structure
Use a linked list to store stair and ladder information, instead of having fixed up/down stairs/ladders and a single "special" (branch) stair. Breaks saves and bones. Adds information to migrating objects and monsters for the dungeon and level where they are migrating from.
This commit is contained in:
@@ -630,6 +630,15 @@ E void FDECL(next_level, (BOOLEAN_P));
|
||||
E void FDECL(prev_level, (BOOLEAN_P));
|
||||
E void FDECL(u_on_newpos, (int, int));
|
||||
E void FDECL(u_on_rndspot, (int));
|
||||
E void FDECL(stairway_add, (int,int, BOOLEAN_P, BOOLEAN_P, d_level *));
|
||||
E void NDECL(stairway_print);
|
||||
E void NDECL(stairway_free_all);
|
||||
E stairway *FDECL(stairway_at, (int, int));
|
||||
E stairway *FDECL(stairway_find, (d_level *));
|
||||
E stairway *FDECL(stairway_find_from, (d_level *, BOOLEAN_P));
|
||||
E stairway *FDECL(stairway_find_dir, (BOOLEAN_P));
|
||||
E stairway *FDECL(stairway_find_type_dir, (BOOLEAN_P, BOOLEAN_P));
|
||||
E stairway *FDECL(stairway_find_special_dir, (BOOLEAN_P));
|
||||
E void FDECL(u_on_sstairs, (int));
|
||||
E void NDECL(u_on_upstairs);
|
||||
E void NDECL(u_on_dnstairs);
|
||||
|
||||
Reference in New Issue
Block a user