Version 2.0022

1) Highlight which items are currently worn when displaying a set (Metria's suggestion)
2) Fixed a bug that failed to detect when a paused note was resumed
master
Durel 7 years ago
parent 41c43b7037
commit a62ecd28e5

@ -2,6 +2,16 @@
dbot.changelog = {}
dbot.changelog[2.0022] =
{
{ change = drlDbotChangeLogTypeFix,
desc = [[Fixed a bug that failed to detect when a paused note was resumed]]
},
{ change = drlDbotChangeLogTypeNew,
desc = [[Highlight which items are currently worn when displaying a set]]
}
}
dbot.changelog[2.0021] =
{
{ change = drlDbotChangeLogTypeFix,
@ -14,8 +24,8 @@ dbot.changelog[2.0021] =
dbot.changelog[2.0020] =
{
{ change = drlDbotChangeLogTypeFix,
desc = [[Fixed a bug that prevented the "dinv portal ..." mode re-equip a dualed weapon if
the character doesn't have the portal wish]]
desc = [[Fixed a bug that prevented the "dinv portal ..." mode from re-equipping a dualed
weapon if the character doesn't have the portal wish]]
}
}

@ -88,7 +88,7 @@ dbot.version : Module to track version and changelog information and update the
save_state="y"
date_written="2017-08-12 08:45:15"
requires="4.98"
version="2.0021"
version="2.0022"
>
<description trim="y">
<![CDATA[
@ -869,6 +869,7 @@ function setPending(msg)
AddTriggerEx("drlNoteWriteConfirmationTrigger",
"^(" ..
"You are now creating a new post in the .* forum.|" ..
"You are now continuing a new post in the .* forum.|" ..
"You cannot post notes in this forum." ..
")$",
"dbot.execute.noteIsPending = false",
@ -13578,7 +13579,13 @@ function inv.set.displaySet(setName, level, equipSet)
local score = equipSet[v].score
local objId = equipSet[v].id
dbot.print("@Y " .. string.format("%08s", v) .. "@W(" .. string.format("%4d", score) ..
-- Highlight items that are currently worn
local locColor = "@y"
if inv.items.isWorn(objId) then
locColor = "@Y"
end -- if
dbot.print(locColor .. " " .. string.format("%08s", v) .. "@W(" .. string.format("%4d", score) ..
"): @GLevel " ..
string.format("%3d", inv.items.getStatField(objId, invStatFieldLevel or "Unknown")) ..
"@W \"" .. (inv.items.getField(objId, invFieldColorName) or "Unidentified") .. "\"")
@ -17117,14 +17124,14 @@ function inv.portal.use(portalId)
end -- if
-- If we have the portal wish, the new portal will go into the "portal" slot. If we do not
-- have the portal wish, we will use the "held" slot. This checks if anything is already at
-- the target location. If something is there, remember what it is so that we can put it
-- back when we are done.
-- have the portal wish, we will use the "hold" or "second" slot. This checks if anything is
-- already at the target location. If something is there, remember what it is so that we can
-- put it back when we are done.
for objId, objInfo in pairs(inv.items.table) do
local currentLoc = inv.items.getField(objId, invFieldObjLoc) or ""
-- If we have the portal wish, check if something is already at the portal location. Similarly,
-- if we do not have the portal wish, check if something is at the held or second locations.
-- if we do not have the portal wish, check if something is at the hold or second locations.
if ((currentLoc == inv.wearLoc[invWearableLocPortal]) and (portalWish == true)) or
((currentLoc == inv.wearLoc[invWearableLocHold]) and (portalWish == false)) or
((currentLoc == inv.wearLoc[invWearableLocSecond]) and (portalWish == false)) then

Loading…
Cancel
Save