From 4ac9081bb3dbc5ef99b32fc5ce7211e36b1479a5 Mon Sep 17 00:00:00 2001 From: ALONSO Laurent Date: Wed, 6 Oct 2021 11:02:04 +0200 Subject: [PATCH] Alchemy: correct the "Weak Curing" information message... --- src/pcedit/pc.editors.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pcedit/pc.editors.cpp b/src/pcedit/pc.editors.cpp index 2657e0fe..32046247 100644 --- a/src/pcedit/pc.editors.cpp +++ b/src/pcedit/pc.editors.cpp @@ -305,9 +305,10 @@ static bool pick_alchemy_led(cDialog& me, std::string item_hit, bool, bool allow cLed& led = dynamic_cast(me.getControl(item_hit)); led.setState(univ.party.alchemy[hit] ? led_red : led_off); } - // TODO: change message when hit==0 - // use a variable to store the beginning of the potion details - me["info"].setText(get_str("alchemy", hit+8)); + if (hit==0) + me["info"].setText("Weak Curing\n Min. Skill - 1\nNeed holly. Cures poison somewhat."); + else + me["info"].setText(get_str("alchemy", hit+8)); return true; }