Cannot attack barricades that diagonally block movement

Forum where closed and resolved bug reports live
Post Reply
GreatCatatonic
Posts: 41
Joined: Wed Nov 24, 2021 3:07 am

Cannot attack barricades that diagonally block movement

Post by GreatCatatonic »

If a barricade blocks you, I imagine you should have the ability to destroy it. I was able to attack them after I went swimming one square south.

--Great
Attachments
Capture.PNG
Capture.PNG (91.56 KiB) Viewed 4193 times
BobGeneric
Site Admin
Posts: 234
Joined: Sat Feb 13, 2021 4:29 am

Re: Cannot attack barricades that diagonally block movement

Post by BobGeneric »

Due to the way the code works barricade attacks are coded to move in one of the four cardinal directions so the code knows "which" barricade is being attacked in the target tile. Because diagonal movement can be blocked by multiple barricades (in the example above, a SW movement could be blocked by either a barricade on the North or the East side of the target tile) and the code doesn't know which direction to apply the attack to, the attack cannot be made (this also is the way barricades worked in NW - only attacks in one of the four cardinal directions worked).

This is something that may be addressed in a future QoL update, and should probably be better explained on the wiki, but at present, this is not actually a bug.
Post Reply