Skip to content

Commit

Permalink
Revert "Two alignment keys can be forged together to create The Key o…
Browse files Browse the repository at this point in the history
…f Access."

This reverts commit 539ca03.

Turns out that indestructible items don't make for good forging ingredients. The keys are not really able to be deleted after forging, so we'll keep it simple for now and return the alignment keys to indestructible status. The Key of Access will have to find a different home.
  • Loading branch information
elunna committed Jul 27, 2023
1 parent e2e3e70 commit bd2025c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 15 deletions.
1 change: 0 additions & 1 deletion hackem_changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Version 1.2.0 (unreleased)
Fix: Vecna wasn't getting the Key of Chaos!
Fix: Lookup for skeleton key matched skeleton monster.
Message when cursed gain level is blocked at Vlad's Tower.
Two alignment keys can be forged together to create The Key of Access.
Clarify message when Vlad's tower is unlocked.
Switch Und-Vam blood potions for vampire blood potions.
Acquiring two alignment keys is now mandatory to ascend Vlad's Tower.
Expand Down
18 changes: 10 additions & 8 deletions include/artilist.h
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,13 @@ STATIC_OVL NEARDATA struct artifact artilist[] = {
NO_COLOR, SILVER),

/*** Alignment quest artifacts ***/
#if 0
A("The Key Of Access", SKELETON_KEY,
(SPFX_RESTR | SPFX_NOWISH | SPFX_NOGEN), 0, 0,
NO_ATTK, NO_DFNS, NO_CARY,
CREATE_PORTAL, A_LAWFUL, NON_PM, NON_PM, 200L, NO_COLOR, GEMSTONE),
#endif

A("Nighthorn", UNICORN_HORN,
(SPFX_NOGEN | SPFX_NOWISH | SPFX_RESTR | SPFX_REFLECT), 0, 0,
NO_ATTK, NO_DFNS, NO_CARY, 0, A_LAWFUL, NON_PM, NON_PM,
Expand All @@ -508,17 +515,17 @@ STATIC_OVL NEARDATA struct artifact artilist[] = {
A("The Key of Law", SKELETON_KEY,
(SPFX_NOGEN | SPFX_NOWISH | SPFX_RESTR | SPFX_INTEL), 0, 0,
NO_ATTK, NO_DFNS, NO_CARY, 0, A_LAWFUL, NON_PM, NON_PM,
1000L, NO_COLOR, GEMSTONE),
1000L, NO_COLOR, DEFAULT_MAT),

A("The Key of Neutrality", SKELETON_KEY,
(SPFX_NOGEN | SPFX_NOWISH | SPFX_RESTR | SPFX_INTEL), 0, 0,
NO_ATTK, NO_DFNS, NO_CARY, 0, A_NEUTRAL, NON_PM, NON_PM,
1000L, NO_COLOR, GEMSTONE),
1000L, NO_COLOR, DEFAULT_MAT),

A("The Key of Chaos", SKELETON_KEY,
(SPFX_NOGEN | SPFX_NOWISH | SPFX_RESTR | SPFX_INTEL), 0, 0,
NO_ATTK, NO_DFNS, NO_CARY, 0, A_CHAOTIC, NON_PM, NON_PM,
1000L, NO_COLOR, GEMSTONE),
1000L, NO_COLOR, DEFAULT_MAT),



Expand All @@ -543,11 +550,6 @@ STATIC_OVL NEARDATA struct artifact artilist[] = {
0, 0, DISN(5, 12), DFNS(AD_DISN), NO_CARY, 0, A_NONE,
NON_PM, NON_PM, 25000L, NO_COLOR, METAL),
#endif
A("The Key Of Access", SKELETON_KEY,
(SPFX_RESTR | SPFX_NOWISH | SPFX_NOGEN | SPFX_FORGED), 0, 0,
NO_ATTK, NO_DFNS, NO_CARY,
CREATE_PORTAL, A_NONE, NON_PM, NON_PM, 200L, NO_COLOR, GEMSTONE),

/* Created by fusing werebane and trollsbane. Original idea by Spicy.
Prevents all monster regen. */
A("Mortality Dial", EXECUTIONER_S_MACE,
Expand Down
2 changes: 0 additions & 2 deletions src/do.c
Original file line number Diff line number Diff line change
Expand Up @@ -2746,8 +2746,6 @@ STATIC_OVL int
countkeys()
{
int count = 0;
if (carrying_arti(ART_KEY_OF_ACCESS))
count = 2;
if (carrying_arti(ART_KEY_OF_NEUTRALITY))
count++;
if (carrying_arti(ART_KEY_OF_CHAOS))
Expand Down
3 changes: 0 additions & 3 deletions src/fountain.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,6 @@ static const struct forge_arti {
/* artifacts */
/* { ART_SWORD_OF_ANNIHILATION, ART_FIRE_BRAND, ART_FROST_BRAND }, */
{ ART_MORTALITY_DIAL, ART_WEREBANE, ART_TROLLSBANE },
{ ART_KEY_OF_ACCESS, ART_KEY_OF_LAW, ART_KEY_OF_CHAOS },
{ ART_KEY_OF_ACCESS, ART_KEY_OF_LAW, ART_KEY_OF_NEUTRALITY },
{ ART_KEY_OF_ACCESS, ART_KEY_OF_CHAOS, ART_KEY_OF_NEUTRALITY },
{ 0, 0, 0 }
};

Expand Down
4 changes: 3 additions & 1 deletion src/zap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,9 @@ int ochance, achance; /* percent chance for ordinary objects, artifacts */
|| (obj->otyp == CORPSE && is_rider(&mons[obj->corpsenm]))
|| (obj->oartifact & (obj->oartifact == ART_BALMUNG
|| obj->oartifact == ART_BRADAMANTE_S_FURY
|| obj->oartifact == ART_KEY_OF_ACCESS))) {
|| obj->oartifact == ART_KEY_OF_LAW
|| obj->oartifact == ART_KEY_OF_NEUTRALITY
|| obj->oartifact == ART_KEY_OF_CHAOS))) {
return TRUE;
} else {
int chance = rn2(100);
Expand Down

0 comments on commit bd2025c

Please sign in to comment.