1) Fixed priority parsing so that max[stat name] correctly gives a bonus for

maxing the specified stat at the target level
2) Fixed "balance" priority to only rely on int and wis stats
master
Durel 7 years ago
parent ee9a7d72d7
commit 2eedceb9e6

@ -12093,13 +12093,13 @@ function inv.priority.addDefault()
minLevel = 1, minLevel = 1,
maxLevel = 291, maxLevel = 291,
priorities = { int = 1, priorities = { int = 1,
luck = 0.5,
wis = -1 wis = -1
} }
} }
}) })
if (retval ~= DRL_RET_SUCCESS) then if (retval ~= DRL_RET_SUCCESS) then
dbot.warn("inv.priority.addDefault: Failed to add priority \"balance\": " .. dbot.retval.getString(retval)) dbot.warn("inv.priority.addDefault: Failed to add priority \"balance\": " ..
dbot.retval.getString(retval))
end -- if end -- if
------------------ ------------------
@ -12179,6 +12179,13 @@ inv.priority.fieldTable = {
{ "allmagic" , "Value of 1 point in each magical resist type" }, { "allmagic" , "Value of 1 point in each magical resist type" },
{ "allphys" , "Value of 1 point in each physical resist type" }, { "allphys" , "Value of 1 point in each physical resist type" },
{ "maxstr" , "Value of hitting a level's strength ceiling" },
{ "maxint" , "Value of hitting a level's intelligence ceiling" },
{ "maxwis" , "Value of hitting a level's wisdom ceiling" },
{ "maxdex" , "Value of hitting a level's dexterity ceiling" },
{ "maxcon" , "Value of hitting a level's constitution ceiling" },
{ "maxluck" , "Value of hitting a level's luck ceiling" },
{ "bash" , "Value of 1 point of bash physical resistance" }, { "bash" , "Value of 1 point of bash physical resistance" },
{ "pierce" , "Value of 1 point of pierce physical resistance" }, { "pierce" , "Value of 1 point of pierce physical resistance" },
{ "slash" , "Value of 1 point of slash physical resistance" }, { "slash" , "Value of 1 point of slash physical resistance" },

Loading…
Cancel
Save