First, here is the problem:
Steps:
• Either stand next to a chest with room to slurp up charcoal, or disconnect the arm to inventory wire.
• Have a few (3-5) charcoal in inventory.
• Select a Generator from the tool rack.
• Wire the drop inventory pin hot.
• Select Charcoal.
Result:
• Generator starts charging the battery.
• All the charcoal is dropped before the generator completes its cycle.
• The battery is NOT charged.
Bigger Picture:
The present behavior of actions that take time, (plowing the ground, planting a seed, cutting a tree, etc.) is that if you power off the robot, 0.1 seconds before the action is complete, no action is performed. The ground is still grass, the seed is unplanted and remains in inventory, the tree is undamaged.
Question: Should the generator be different?
One proposed solution is that the generator should remove 1 charcoal from inventory at the beginning of the charge cycle, and that charcoal is consumed, regardless of outcome. If the robot is powered off before the charge cycle is complete, you still get no change to battery power, and the charcoal is lost. If the charge cycle completes, the battery gains power. Whether or not the rest of the charcoal is dropped has no effect on the charge cycle. Though, you would not get any additional charge cycles that would normally happen if there is no longer any charcoal in inventory.
So...
What are thoughts on this issue?