From 0bae59a0f7b179fdfca405e0d4593253d44477e4 Mon Sep 17 00:00:00 2001 From: Erik Lunna Date: Wed, 27 Sep 2023 09:05:16 +0200 Subject: [PATCH] The Ice Mage starts with (ski) goggles instead of lenses. 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. --- src/potion.c | 7 +++++-- src/u_init.c | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/potion.c b/src/potion.c index e385fc573..567f5b10d 100644 --- a/src/potion.c +++ b/src/potion.c @@ -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: diff --git a/src/u_init.c b/src/u_init.c index ba5305c93..88f258a97 100644 --- a/src/u_init.c +++ b/src/u_init.c @@ -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 } }; @@ -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: