Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Tunnellers breaching fortified walls?

  
  1. #11

    Default Re: Tunnellers breaching fortified walls?

    I highly doubt there's a loop.

    Tunneler reaches tile.
    Can I dig this?
    -- Yes.
    Dig tile.
    -- No.
    Keep walking.

    He's not checking if the tile is diggable after every smack.

    It doesn't seem like it'd be a hard bug to fix, but it really depends on how the logic is written.

  2. #12
    Demon Spawn
    Join Date
    Jul 2016
    Posts
    177

    Default Re: Tunnellers breaching fortified walls?

    Quote Originally Posted by Woudo View Post
    I highly doubt there's a loop.

    Tunneler reaches tile.
    Can I dig this?
    -- Yes.
    Dig tile.
    -- No.
    Keep walking.

    He's not checking if the tile is diggable after every smack.

    It doesn't seem like it'd be a hard bug to fix, but it really depends on how the logic is written.
    I can't see how else the digging routine would be implemented. The only way I can think of is a while loop, with the while condition being as long as the tile is flagged, and the routine is to keep digging. Fortification disallows the flagging of the tile, but doesn't unflag it if it's already flagged, at least for hero tunnellers, enabling them to dig through the fortified wall. Of course, I don't have access to the source code, so I'm only guessing.

  3. #13

    Default Re: Tunnellers breaching fortified walls?

    I've actually looked at the tunneling code a while ago, and I could remembered, but I believe Woudo is right. Walls can be tunneled through,... but creatures refuse to tunnel through enemy walls. What does actually happen is to check the health of the slab on each action.

Similar Threads

  1. Why Tunnellers don't tunnel Gold?
    By friscmanseby in forum KeeperFX
    Replies: 3
    Last Post: September 6th, 2012, 23:03
  2. Adding Tunnellers
    By Metal Gear Rex in forum DK1 Mapmaking
    Replies: 1
    Last Post: October 31st, 2009, 20:56

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •