Restructure u_init to allow for inventory rerolling

This doesn't implement inventory rerolling, just adds the
infrastructure: it's now possible to call u_init_inventory_attrs
multiple times and the starting inventory/attributes replace those
from the previous call rather than compounding.
This commit is contained in:
Alex Smith
2025-11-30 04:52:13 +00:00
parent d41cea8286
commit e428046ffa
3 changed files with 88 additions and 51 deletions

View File

@@ -3304,7 +3304,9 @@ extern void trap_sanity_check(void);
/* ### u_init.c ### */
extern void u_init(void);
extern void u_init_misc(void);
extern void u_init_inventory_attrs(void);
extern void u_init_skills_discoveries(void);
/* ### uhitm.c ### */