Closed Kherae closed 1 year ago
"Minimum time between deposits"?
more like "maximum time between deposits" was a "Bad with words" case, but the idea is to have neckros go no further than X minutes without depositing
Sounds good to me. The way I typically do this is to store the value of Time.time
and then compare against that in the update loop. Check the code for Guardian Wraith expiring after X seconds.
Why not use a coroutine? Because I've found that coroutines can misbehave on creatures for some reason. It works great for static structures that don't move around, like pylons, but somehow malfunctions for creatures.
All right. The timer should probably only start once it picks up the first object.
@CW-Jesse you want this one?
while the implementation of "deposit if nothing to pick up" is good, there's still one case that could use some attention: continuous slow production that does not fill the neckro's inventory very quickly. Thus, my suggestion: have a configuration option to make the neckro deposit after a specific amount of time.