- Seller
- #1,801
Just an insight into general calculations for the depot for standard
Yes there are better ways I am sure, but I am bludgeoning the feline , not finessing it.
Code:
-- Bank and inventory have something and depot has more than both
if l_tot_count > 0 and tsd_count > l_tot_count and tsd_count +
l_tot_count >= z_count then
l_calc = tsd_count - l_tot_count
end
-- Bank and inventory have something and depot has less than both
if l_tot_count > 0 and tsd_count < l_tot_count and tsd_count +
l_tot_count >= z_count then
l_calc = l_tot_count - tsd_count
end
-- Bank and inventory have something and depot has an equal amount
if l_tot_count > 0 and tsd_count == l_tot_count and
tsd_count + l_tot_count >= z_count then
l_calc = z_count / 2
end
-- Nothing in Bank or Inventory, but we meet or exceed needed count
if l_tot_count < 1 and tsd_count >= z_count then
l_calc = z_count
end
Yes there are better ways I am sure, but I am bludgeoning the feline , not finessing it.





