Skip to content

Commit

Permalink
Change to the resilience property: Instead of withering resistance - …
Browse files Browse the repository at this point in the history
…we're going to go with disintegration resistance for the player. This matches more suitably with the item protection from destruction and erosion, and it's a much more valuable ability than withering deterrence.
  • Loading branch information
elunna committed Oct 3, 2023
1 parent 08e6a2b commit e234807
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion include/obj.h
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ struct obj {
#define ITEM_WWALK 0x02000000L /* extrinsic water walking */
#define ITEM_SWIM 0x04000000L /* extrinsic swimming */
#define ITEM_RAGE 0x08000000L /* extrinsic rage and fearlessness */
#define ITEM_TOUGH 0x10000000L /* extrinsic withering res */
#define ITEM_TOUGH 0x10000000L /* extrinsic disintegration res */
#define ITEM_PROWESS 0x20000000L /* Speeds up tech cooldowns, skill bonuses */

#define ITEM_MAGICAL 0x80000000L /* known to have magical properties */
Expand Down
4 changes: 2 additions & 2 deletions src/do_wear.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ long mask;
}
}
if (props & ITEM_TOUGH)
BWithering |= mask;
EDisint_resistance |= mask;
if (props & ITEM_OILSKIN) {
pline("%s very tightly.", Tobjnam(otmp, "fit"));
otmp->oprops_known |= ITEM_OILSKIN;
Expand Down Expand Up @@ -349,7 +349,7 @@ long mask;
if (props & ITEM_RAGE)
EFearless &= ~mask;
if (props & ITEM_TOUGH)
BWithering &= ~mask;
EDisint_resistance &= ~mask;
if (props & ITEM_OILSKIN)
otmp->oprops_known |= ITEM_OILSKIN;
if (props & ITEM_ESP) {
Expand Down
5 changes: 0 additions & 5 deletions src/mhitu.c
Original file line number Diff line number Diff line change
Expand Up @@ -2645,11 +2645,6 @@ register struct attack *mattk;
} else if (BWithering) {
struct obj *o;
You_feel("dessicated for a moment.");

if ((o = using_oprop(ITEM_TOUGH)) && !o->oprops_known) {
Your("%s absorbs the deathly withering!", xname(o));
o->oprops_known |= ITEM_VIGIL;
}
}

break;
Expand Down
2 changes: 1 addition & 1 deletion src/pager.c
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,7 @@ char *usr_text;
if (obj->oprops & ITEM_STUN) OBJPUTSTR("Grants stun resistance");
if (obj->oprops & ITEM_RAGE) OBJPUTSTR("Grants rage and fearlessness");
if (obj->oprops & ITEM_PROWESS) OBJPUTSTR("Grants prowess in technical skills");
if (obj->oprops & ITEM_TOUGH) OBJPUTSTR("Grants withering resistance");
if (obj->oprops & ITEM_TOUGH) OBJPUTSTR("Grants disintegration resistance");
if (obj->oprops & ITEM_OILSKIN) OBJPUTSTR("Permanently greased");
if (obj->oprops & ITEM_FUMBLING) OBJPUTSTR("Grants fumbling");
}
Expand Down
2 changes: 1 addition & 1 deletion src/trap.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ int ef_flags;
if (!otmp)
return ER_NOTHING;

/* Tough items are immune to erosion. */
/* Resiliant items are immune to erosion. */
if (otmp && otmp->oprops & ITEM_TOUGH) {
otmp->oprops_known |= ITEM_TOUGH;
return FALSE;
Expand Down
8 changes: 4 additions & 4 deletions src/wield.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ register struct obj *obj;
EFearless &= ~W_WEP;
}
if (olduwep->oprops & ITEM_TOUGH) {
BWithering &= ~W_WEP;
EDisint_resistance &= ~W_WEP;
}
}

Expand Down Expand Up @@ -300,7 +300,7 @@ register struct obj *obj;
}
}
if (uwep->oprops & ITEM_TOUGH) {
BWithering |= W_WEP;
EDisint_resistance |= W_WEP;
}
}

Expand Down Expand Up @@ -601,7 +601,7 @@ register struct obj *obj;
}
/* Toughness */
if (olduswapwep->oprops & ITEM_TOUGH) {
BWithering &= ~W_SWAPWEP;
EDisint_resistance &= ~W_SWAPWEP;
}
}

Expand Down Expand Up @@ -696,7 +696,7 @@ register struct obj *obj;
}
}
if (uswapwep->oprops & ITEM_TOUGH) {
BWithering |= W_SWAPWEP;
EDisint_resistance |= W_SWAPWEP;
}
}

Expand Down

0 comments on commit e234807

Please sign in to comment.