Renamed instance_variables to global_variables and iv to g.

This commit is contained in:
Bart House
2018-11-23 09:27:10 -08:00
parent 14bf74c862
commit f9a0db6c44
21 changed files with 115 additions and 115 deletions

View File

@@ -991,9 +991,9 @@ register struct trobj *trop;
*/
obj = mkobj(trop->trclass, FALSE);
otyp = obj->otyp;
while (otyp == WAN_WISHING || otyp == iv.nocreate
|| otyp == iv.nocreate2 || otyp == iv.nocreate3
|| otyp == iv.nocreate4 || otyp == RIN_LEVITATION
while (otyp == WAN_WISHING || otyp == g.nocreate
|| otyp == g.nocreate2 || otyp == g.nocreate3
|| otyp == g.nocreate4 || otyp == RIN_LEVITATION
/* 'useless' items */
|| otyp == POT_HALLUCINATION
|| otyp == POT_ACID
@@ -1035,16 +1035,16 @@ register struct trobj *trop;
case WAN_POLYMORPH:
case RIN_POLYMORPH:
case POT_POLYMORPH:
iv.nocreate = RIN_POLYMORPH_CONTROL;
g.nocreate = RIN_POLYMORPH_CONTROL;
break;
case RIN_POLYMORPH_CONTROL:
iv.nocreate = RIN_POLYMORPH;
iv.nocreate2 = SPE_POLYMORPH;
iv.nocreate3 = POT_POLYMORPH;
g.nocreate = RIN_POLYMORPH;
g.nocreate2 = SPE_POLYMORPH;
g.nocreate3 = POT_POLYMORPH;
}
/* Don't have 2 of the same ring or spellbook */
if (obj->oclass == RING_CLASS || obj->oclass == SPBOOK_CLASS)
iv.nocreate4 = otyp;
g.nocreate4 = otyp;
}
if (urace.malenum != PM_HUMAN) {