From 01b5be63d61fc931b99d815e442ccb015ca6c19f Mon Sep 17 00:00:00 2001 From: Yer mivvaggah Date: Sun, 24 Jul 2016 06:24:25 -0400 Subject: [PATCH 1/2] use cancellation for sentinel mark and confusion --- qw.rc | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/qw.rc b/qw.rc index 177d09c..cc37b08 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 From 009aee46b772789d4912b1d132f1787452926457 Mon Sep 17 00:00:00 2001 From: Yer mivvaggah Date: Sun, 24 Jul 2016 08:51:06 -0400 Subject: [PATCH 2/2] Update qw.rc --- qw.rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qw.rc b/qw.rc index cc37b08..1d3d4c4 100644 --- a/qw.rc +++ b/qw.rc @@ -5878,7 +5878,7 @@ function plan_cure_sentinel_mark() end if you.sentinel_mark() then if drink_by_name("cancellation") then - say("(to cure sentinel_mark") + say("(to cure sentinel_mark)") return true end end @@ -6476,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"},