]> ruin.nu Git - hbs.git/blobdiff - bs/fleet.cpp
Started the work to split up the pods better..
[hbs.git] / bs / fleet.cpp
index a15fba36788628798d041ce50c4745585d590737..13bafb7aa071ace95640bb0e84dca2840aeb3cef 100644 (file)
@@ -683,4 +683,12 @@ void Fleet::distributeCappedRoids(std::vector<Fleet*> fleets, int tick = 0)
        }
 }
 
-
+//////////////////////////////////////////////////////////////////////////
+//
+void Fleet::addPodsForLostRoids(int tick = 1)
+{
+       for (ResourceList::iterator i = m_Resources.begin(); i != m_Resources.end(); ++i)
+       {
+               setFleet("Astro Pod", fleet("Astro Pod", tick) + (resource(i->first, tick) - resource(i->first, tick - 1)), tick);
+       }
+}