Skip to content
Closed
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
12 changes: 6 additions & 6 deletions qw.rc
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ end
-- list of armour slots, this is used to normalize names for them and also
-- to iterate over the slots
good_slots = {cloak="Cloak", helmet="Helmet",
gloves="Gloves", boots="Boots", body="Armour", shield="Shield"}
gloves="Gloves", boots="Boots", body="Body Armour", shield="Shield"}

function armour_value(it, cur, it2)
local name = it.name()
Expand Down Expand Up @@ -915,7 +915,7 @@ function armour_value(it, cur, it2)
return -1,-1
end
end
if good_slots[st] == "Armour" then
if good_slots[st] == "Body Armour" then
if unfitting_armour() then
value = value - 25*it.ac
end
Expand Down Expand Up @@ -3163,7 +3163,7 @@ function cleaving()
end

function armour_ac()
arm = items.equipped_at("Armour")
arm = items.equipped_at("Body Armour")
if arm then
return arm.ac
else
Expand All @@ -3185,7 +3185,7 @@ function base_ac()
end

function armour_evp()
arm = items.equipped_at("Armour")
arm = items.equipped_at("Body Armour")
if arm then
return arm.encumbrance
else
Expand Down Expand Up @@ -5026,7 +5026,7 @@ function plan_use_good_consumables()
end
end
elseif it.name():find("enchant armour") then
body = items.equipped_at("Armour")
body = items.equipped_at("Body Armour")
ac = armour_ac()
if body and not body.artefact and body.plus < ac
and body_armour_is_great(body)
Expand All @@ -5038,7 +5038,7 @@ function plan_use_good_consumables()
end
end
for _,slotname in pairs(good_slots) do
if slotname ~= "Armour" and slotname ~= "Shield" then
if slotname ~= "Body Armour" and slotname ~= "Shield" then
it2 = items.equipped_at(slotname)
if it2 and not it2.artefact and it2.plus < 2 and it2.plus >= 0
and not it2.name():find("scarf")
Expand Down