From 2eedceb9e69a2798ce33ae955e83a14eed3aa1b5 Mon Sep 17 00:00:00 2001 From: Durel Date: Mon, 16 Oct 2017 13:32:37 -0400 Subject: [PATCH] 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 --- aard_inventory.xml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/aard_inventory.xml b/aard_inventory.xml index 578b7a7..241e84d 100644 --- a/aard_inventory.xml +++ b/aard_inventory.xml @@ -12093,13 +12093,13 @@ function inv.priority.addDefault() minLevel = 1, maxLevel = 291, priorities = { int = 1, - luck = 0.5, wis = -1 } } }) 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 ------------------ @@ -12179,6 +12179,13 @@ inv.priority.fieldTable = { { "allmagic" , "Value of 1 point in each magical 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" }, { "pierce" , "Value of 1 point of pierce physical resistance" }, { "slash" , "Value of 1 point of slash physical resistance" },