done for now

Brad Gearon [04-09-14 - 12:36]
done for now
Filename
.idea/workspace.xml
Stuff.lua
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 428de78..0f329a0 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -71,7 +71,7 @@
       <file leaf-file-name="Stuff.lua" pinned="false" current="true" current-in-tab="true">
         <entry file="file://$PROJECT_DIR$/Stuff.lua">
           <provider selected="true" editor-type-id="text-editor">
-            <state line="63" column="0" selection-start="2096" selection-end="2096" vertical-scroll-proportion="0.620438">
+            <state line="146" column="82" selection-start="4753" selection-end="4753" vertical-scroll-proportion="0.6277372">
               <folding />
             </state>
           </provider>
@@ -537,7 +537,7 @@
     </entry>
     <entry file="file://$PROJECT_DIR$/Stuff.lua">
       <provider selected="true" editor-type-id="text-editor">
-        <state line="63" column="0" selection-start="2096" selection-end="2096" vertical-scroll-proportion="0.620438">
+        <state line="146" column="82" selection-start="4753" selection-end="4753" vertical-scroll-proportion="0.6277372">
           <folding />
         </state>
       </provider>
diff --git a/Stuff.lua b/Stuff.lua
index 3a44a7f..dda3909 100644
--- a/Stuff.lua
+++ b/Stuff.lua
@@ -33,13 +33,13 @@ function moveItem(fromItem, toItem, maxStack, itemName)
     local quantity = math.min(maxStack - toItem.stack, fromItem.stack)
     -- if we can move any
     if (quantity > 0) then
-        d(" moving " .. quantity .. " " .. itemName .. "from bag: " .. fromItem.bag .. " slot: " .. fromItem.slot .. " to bag: " .. toItem.bag .. " slot: " .. toItem.slot .. " with: " .. toItem.stack)
+        d(" moving " .. quantity .. " " .. itemName .. " from bag: " .. fromItem.bag .. " slot: " .. fromItem.slot .. " to bag: " .. toItem.bag .. " slot: " .. toItem.slot .. " with: " .. toItem.stack)
         -- move them
         result = stackItem(fromItem.bag, fromItem.slot, toItem.bag, toItem.slot, quantity, itemName)
         if (result) then
             fromItem.stack = fromItem.stack - quantity
             toItem.stack = toItem.stack + quantity
-            d("moved " .. quantity .. " " .. itemName .. "from bag: " .. fromItem.bag .. " slot: " .. fromItem.slot .. " to bag: " .. toItem.bag .. " slot: " .. toItem.slot .. " with: " .. toItem.stack)
+            d("moved " .. quantity .. " " .. itemName .. " from bag: " .. fromItem.bag .. " slot: " .. fromItem.slot .. " to bag: " .. toItem.bag .. " slot: " .. toItem.slot .. " with: " .. toItem.stack)
         end
     end
 end
@@ -54,7 +54,6 @@ end


 function moveItems(bags, fromBag, toBag)
-    d("call")
     for itemName, bagItem in pairs(bags) do
         local fromItems = bagItem[fromBag]
         local toItems = bagItem[toBag]