The forum is being replaced with new software. Please use the replacement hosted at https://forum.angband.live/ in the meantime. These forums will stay open until migrating old topics can be achieved, though posting will eventually be locked. Thankyou for your patience.

[3.5-dev] New "small" pits prevent some monsters from appearing

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

    [3.5-dev] New "small" pits prevent some monsters from appearing

    The new pit layout should be:

    Code:
    #############
    #11000000011#
    #01234543210#
    #01236763210#
    #01234543210#
    #11000000011#
    #############
    But as coded, the result is:

    Code:
    #############
    #11000000011#
    #01235553210#
    #01236763210#
    #01235553210#
    #11000000011#
    #############
    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!
  • fizzix
    Prophet
    • Aug 2009
    • 2969

    #2
    Originally posted by PowerWyrm
    The new pit layout should be:

    Code:
    #############
    #11000000011#
    #01234543210#
    #01236763210#
    #01234543210#
    #11000000011#
    #############
    But as coded, the result is:

    Code:
    #############
    #11000000011#
    #01235553210#
    #01236763210#
    #01235553210#
    #11000000011#
    #############
    Thanks for pointing this out, I'll try to fix it tonight.

    Comment

    • fizzix
      Prophet
      • Aug 2009
      • 2969

      #3
      I think it's correct as coded. Sometimes the same monster race will appear across multiple slots. So you can sometimes get ones where 4 and 5 are the same, and sometimes where 6 and 7 are the same.

      Comment

      • PowerWyrm
        Prophet
        • Apr 2008
        • 2942

        #4
        Originally posted by fizzix
        I think it's correct as coded. Sometimes the same monster race will appear across multiple slots. So you can sometimes get ones where 4 and 5 are the same, and sometimes where 6 and 7 are the same.
        ???

        Currently, the spots where monster race 4 should appear are simply overwritten by monster race 5.

        You have for monster race 4:
        - place(y0 - 1, x0 - 1)
        - place(y0 - 1, x0 + 1)
        - place(y0 + 1, x0 - 1)
        - place(y0 + 1, x0 + 1)

        And for monster race 5:
        - for (x = x0 - 1; x <= x0 + 1; x++) place(y0 + 1, x) + place(y0 - 1, x)

        which overwrites the 4 previous spots.

        For monster race 5, this should be replaced by:
        - place(y0 + 1, x0)
        - place(y0 - 1, x0)
        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

        • fizzix
          Prophet
          • Aug 2009
          • 2969

          #5
          oh, I see what you're getting at. That should be fixed, but it actually doesn't overwrite the spot, so it still works as desired but the code is unclear. When it tries to put the new monster there, it finds a monster already there and then gives up.

          Comment

          Working...
          😀
          😂
          🥰
          😘
          🤢
          😎
          😞
          😡
          👍
          👎
          MMOMBuy POE 2 Currency