bnordli / rftg

Race for the Galaxy AI
173 stars 32 forks source link

Defending with extra military against takeover does not always consume resource #59

Open dominiquelee opened 3 years ago

dominiquelee commented 3 years ago

image In this situation, Blue attacks with strength 9 a world of defense 4 + 2 + 1 (rebel) = 7. The defender can get 1 extra military from Rebel Troops and 2 from Rebel Fuel Refinery power combined with the newly placed Runaway Robots (it's using the resource on it, not its power so I think it's OK), so he should be able to defend against the takeover.

Here's the situation after the takeover attempt: image The resource is still on Runaway Robots and indeed, it doesn't appear as consumed in the log. However, the log displays a defense with 10 military, which does not seem possible without consuming a rare resource.

the exported file: takeover.txt

bnordli commented 3 years ago

Probably related to #32.

dsnvwlmnt commented 3 years ago

Probably related to #32.

Doesn't seem like it. If red had used the Rebel Troops power twice, they would defend with 9 and lose the world.

Looks like the Rebel Fuel Refinery's power was used, but the good wasn't spent off Runaway Robots. Might be some esoteric timing bug when using a good from a newly placed world during defense.

This kind of combination is exceedingly rare, and the couple times in your life it did occur you'd really have to be paying attention to notice the player kept a free good.

Edit: It could be a display issue, i.e. the good wasn't visibly removed but the player didn't actually have it to use. There are bugs like this in the app but it usually seemed to be app-specific bugs due to added UI code. dominiquelee could clarify whether the red player was able to spend the good during the consume phase.

dominiquelee commented 3 years ago

It's not a display issue, continuing gives

--- Consume phase --- Red consumes good from Runaway Robots using Galactic Studios. Red receives 1 card and 2 VPs for Consume phase.