Allow starting game as pauper, without any inventory

And also without spells, skills, or preidentified items.
This also implies nudist.

Breaks saves and bones.
This commit is contained in:
Pasi Kallinen
2024-08-29 20:51:09 +03:00
parent 1595b682cf
commit e645c0b4bb
9 changed files with 31 additions and 3 deletions

View File

@@ -559,6 +559,8 @@ static const struct def_skill Skill_W[] = {
staticfn void
knows_object(int obj)
{
if (u.uroleplay.pauper)
return;
discover_object(obj, TRUE, FALSE);
objects[obj].oc_pre_discovered = 1; /* not a "discovery" */
}
@@ -571,6 +573,9 @@ knows_class(char sym)
struct obj odummy, *o;
int ct;
if (u.uroleplay.pauper)
return;
odummy = cg.zeroobj;
odummy.oclass = sym;
o = &odummy; /* for use in various obj.h macros */
@@ -1213,6 +1218,9 @@ ini_inv(struct trobj *trop)
int otyp;
boolean got_sp1 = FALSE; /* got a level 1 spellbook? */
if (u.uroleplay.pauper) /* pauper gets no items */
return;
while (trop->trclass) {
otyp = (int) trop->trotyp;
if (otyp != UNDEF_TYP) {