[3.4-RC] Minor glitch: mimics reveal themselves when running

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PowerWyrm
    Prophet
    • Apr 2008
    • 2986

    [3.4-RC] Minor glitch: mimics reveal themselves when running

    When you see a pile of copper coins and you run towards it, you will stop next to it if it's a real pile of cash. If it's a mimic, you will stop 2 squares away from it...

    This is caused by the following code in pathfind.c:

    Code:
    	/* Look at every soon to be newly adjacent square. */
    	for (i = -max; i <= max; i++)
    	{		
    		/* New direction */
    		new_dir = cycle[chome[prev_dir] + i];
    		
    		/* New location */
    		row = py + ddy[prev_dir] + ddy[new_dir];
    		col = px + ddx[prev_dir] + ddx[new_dir];
    		
    		/* HACK: Ugh. Sometimes we come up with illegal bounds. This will
    		 * treat the symptom but not the disease. */
    		if (row >= DUNGEON_HGT || col >= DUNGEON_WID) continue;
    		if (row < 0 || col < 0) continue;
    
    		/* Visible monsters abort running */
    		if (cave->m_idx[row][col] > 0)
    		{
    			monster_type *m_ptr = cave_monster_at(cave, row, col);
    			
    			/* Visible monster */
    			if (m_ptr->ml) return (TRUE);			
    		}
    	}
    Here, hidden mimics should not abort running...
    PWMAngband variant maintainer - check https://github.com/draconisPW/PWMAngband (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
  • PowerWyrm
    Prophet
    • Apr 2008
    • 2986

    #2
    Another similar problem: when mimics appear/disappear from view and either disturb_move or disturb_near is on, the player gets disturbed. He should not get disturbed until the mimic reveals itself.
    PWMAngband variant maintainer - check https://github.com/draconisPW/PWMAngband (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!

    Comment

    • Magnate
      Angband Devteam member
      • May 2007
      • 5110

      #3
      Thanks for these - if there isn't an open ticket for mimic buglets, please could you create one?
      "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

      Comment

      • PowerWyrm
        Prophet
        • Apr 2008
        • 2986

        #4
        Didn't see a ticket for these. Opened as #1667.
        PWMAngband variant maintainer - check https://github.com/draconisPW/PWMAngband (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!

        Comment

        • Magnate
          Angband Devteam member
          • May 2007
          • 5110

          #5
          Originally posted by PowerWyrm
          Didn't see a ticket for these. Opened as #1667.
          Thank you - we won't forget to fix them, eventually!
          "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

          Comment

          Working...
          😀
          😂
          🥰
          😘
          🤢
          😎
          😞
          😡
          👍
          👎