Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion qw.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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"},
Expand Down