dmazin / asteroid-tycoon

We at Asteroid Tycoon pride ourselves on our efficiency and productivity, so GET TO WORK!
7 stars 4 forks source link

Vultures get stuck #4

Open TikhonJelvis opened 10 years ago

TikhonJelvis commented 10 years ago

If two vultures try to suck up the same corpse, one of them gets stuck.

Steps to reproduce:

I think it's a problem with the loop that decides whether a vulture is currently salvaging anything. Perhaps we could just fix this by making the vultures' pathfinding more intelligent at avoiding other vultures? This would make using multiple vultures simultaneously much easier.

Interesting, I was watching somebody else play the game and this bug came up repeatedly—but the player didn't notice until I pointed it out!

Anyhow, I figure fixing this is a good step towards polishing the game up a bit post-LD.

extrajordanary commented 10 years ago

I think it might be good to also take a look at the other bot classes re: digging and resource collection. I haven't noticed them freezing like the vultures, but it does make me think that often they move so quickly, are we sure that bots working on the same resource aren't somehow doubling the resource collected by both filling up with the amount being removed? I haven't taken a look at the logic they use so I could be entirely off base.