diff --git a/qw.rc b/qw.rc index 177d09c..1d3d4c4 100644 --- a/qw.rc +++ b/qw.rc @@ -1205,7 +1205,8 @@ function want_potion(it) end if sub ~= "curing" and sub ~= "heal wounds" and sub ~= "haste" and sub ~= "resistance" and sub ~= "experience" and sub ~= "might" - and sub ~= "beneficial mutation" and sub ~= "cure mutation" then + and sub ~= "beneficial mutation" and sub ~= "cure mutation" + and sub ~= "cancellation" then return false end return true @@ -5856,6 +5857,9 @@ function plan_cure_confusion() end return false end + if drink_by_name("cancellation") then + say("(to cure confusion)") + return true if drink_by_name("curing") then say("(to cure confusion)") return true @@ -5868,6 +5872,18 @@ function plan_cure_confusion() return false end +function plan_cure_sentinel_mark() + if not (danger) then + return false + end + if you.sentinel_mark() then + if drink_by_name("cancellation") then + say("(to cure sentinel_mark)") + return true + end + end +return false + function plan_cure_starving() if you.hunger_name() == "fainting" or (you.hunger_name() == "starving" and not hp_is_low(50)) then @@ -6460,6 +6476,7 @@ plan_pre_explore2 = cascade { plan_emergency = cascade { {plan_cure_starving, "cure_starving"}, {plan_cure_confusion, "cure_confusion"}, + {plan_cure_sentinel_mark, "cure_sentinel_mark"}, {plan_choose_tactical_step, "choose_tactical_step"}, {plan_coward_step, "coward_step"}, {plan_remove_terrible_jewellery, "remove_terrible_jewellery"},