Skip to content

Commit

Permalink
The Ice Mage starts with (ski) goggles instead of lenses.
Browse files Browse the repository at this point in the history
Goggles are incredibly rare, so might be a good way for this item to get more play.

Added a tinker recipe so goggles and lenses can be upgraded back and forth.
  • Loading branch information
elunna committed Sep 27, 2023
1 parent d897e52 commit 0bae59a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/potion.c
Original file line number Diff line number Diff line change
Expand Up @@ -4330,8 +4330,11 @@ obj2upgrade(int otyp)
case TIN_OPENER: return TINNING_KIT;
case TINNING_KIT: return TIN_OPENER;

case LENSES: return CRYSTAL_BALL;
case CRYSTAL_BALL: return LENSES;
case LENSES: return GOGGLES;
case GOGGLES: return LENSES;

case EIGHT_BALL: return CRYSTAL_BALL;
case CRYSTAL_BALL: return EIGHT_BALL;

case LAND_MINE:
case PINEAPPLE:
Expand Down
4 changes: 2 additions & 2 deletions src/u_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ struct trobj AoUn[] = { { AMULET_OF_UNCHANGING, 0, AMULET_CLASS, 1, CURSED },
{ 0, 0, 0, 0, 0 } };
struct trobj Oilskin[] = { { OILSKIN_SACK, 0, TOOL_CLASS, 1, 0 },
{ 0, 0, 0, 0, 0 } };
struct trobj Lenses[] = { { LENSES, 0, TOOL_CLASS, 1, 0 },
struct trobj Goggles[] = { { GOGGLES, 0, TOOL_CLASS, 1, 0 },
{ 0, 0, 0, 0, 0 } };
struct trobj GrapplingHook[] = { { GRAPPLING_HOOK, 0, TOOL_CLASS, 1, 0 },
{ 0, 0, 0, 0, 0 } };
Expand Down Expand Up @@ -1201,7 +1201,7 @@ u_init()
}
ini_inv(Ice_Mage);
if (!rn2(2))
ini_inv(Lenses);
ini_inv(Goggles);
skill_init(Skill_I);
break;
case PM_JEDI:
Expand Down

0 comments on commit 0bae59a

Please sign in to comment.