nicymike / serflings

Serflings Remake Project
https://serflings.simpleguide.net/
26 stars 0 forks source link

Can not demolish building #115

Open notarocketscientist opened 10 months ago

notarocketscientist commented 10 months ago

Hi @nicymike,

I found another thing. I can not demolish a guard house in these circumstances: https://github.com/notarocketscientist/serflings-debug/tree/master/can-not-demolish

It's not a big problem, but I thought I'll let you know.

nicymike commented 10 months ago

Please validate if there is an enemy knight near. Demolish will be rejected if an enemy knight is somewhere around it to prevent burning if beeing attacked.

notarocketscientist commented 10 months ago

There is an enemy knight walking on a nearby road on the other side of the border. However, that knight is not on the way to attack the mentioned guard house (which I want to demolish). He's just walking by, going inside another military building of the AI.

Furthermore, I can demolish all the other military buildings in that area without any problem. That's why I found it a bit strange.

I know, that you can not demolish a military building while being attacked (or when enemy nights are already on the way to that building).

Is there some game logic that prevents demolishing in general, if an enemy is near?

nicymike commented 10 months ago

The game just checks for enemy knights near regardless what they do. There is no check for attack. This means an enemy knight just walking on a path near can block demolish on your side.