Version 2.0021

1) Fixed another bug in the "dinv portal use" code that mistakenly looked for the
   "held" location instead of the "hold" location.  Many thanks to Daak for finding
   this and submitting the fix!
master
Durel 7 years ago
parent 4cdeba7a1f
commit 41c43b7037

@ -2,6 +2,15 @@
dbot.changelog = {} dbot.changelog = {}
dbot.changelog[2.0021] =
{
{ change = drlDbotChangeLogTypeFix,
desc = [[Fixed another bug in the "dinv portal use" code that mistakenly looked for the
"held" location instead of the "hold" location. Many thanks to Daak for finding
this and submitting the fix!]]
}
}
dbot.changelog[2.0020] = dbot.changelog[2.0020] =
{ {
{ change = drlDbotChangeLogTypeFix, { change = drlDbotChangeLogTypeFix,
@ -10,7 +19,6 @@ dbot.changelog[2.0020] =
} }
} }
dbot.changelog[2.0019] = dbot.changelog[2.0019] =
{ {
{ change = drlDbotChangeLogTypeNew, { change = drlDbotChangeLogTypeNew,

@ -88,7 +88,7 @@ dbot.version : Module to track version and changelog information and update the
save_state="y" save_state="y"
date_written="2017-08-12 08:45:15" date_written="2017-08-12 08:45:15"
requires="4.98" requires="4.98"
version="2.0020" version="2.0021"
> >
<description trim="y"> <description trim="y">
<![CDATA[ <![CDATA[
@ -17126,7 +17126,7 @@ function inv.portal.use(portalId)
-- If we have the portal wish, check if something is already at the portal location. Similarly, -- 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 held or second locations.
if ((currentLoc == inv.wearLoc[invWearableLocPortal]) and (portalWish == true)) or if ((currentLoc == inv.wearLoc[invWearableLocPortal]) and (portalWish == true)) or
((currentLoc == inv.wearLoc[invWearableLocHeld]) and (portalWish == false)) or ((currentLoc == inv.wearLoc[invWearableLocHold]) and (portalWish == false)) or
((currentLoc == inv.wearLoc[invWearableLocSecond]) and (portalWish == false)) then ((currentLoc == inv.wearLoc[invWearableLocSecond]) and (portalWish == false)) then
origLoc = currentLoc origLoc = currentLoc
origId = objId origId = objId

Loading…
Cancel
Save