Current master post 4.2.0

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

    Commit 13db04d introduced different code for lighting which only consider TORCH features. Before, it was considering all COLOR_WHITE features. Result: stairs aren't lit differently anymore (ASCII mode). Maybe they should get the TORCH flag.
    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

    • Pete Mack
      Prophet
      • Apr 2007
      • 6883

      Gothmog's lash is made of fire in canon, yes.

      Comment

      • Nick
        Vanilla maintainer
        • Apr 2007
        • 9647

        Originally posted by PowerWyrm
        Commit 13db04d introduced different code for lighting which only consider TORCH features. Before, it was considering all COLOR_WHITE features. Result: stairs aren't lit differently anymore (ASCII mode). Maybe they should get the TORCH flag.
        OK, they get the TORCH flag.
        One for the Dark Lord on his dark throne
        In the Land of Mordor where the Shadows lie.

        Comment

        • PowerWyrm
          Prophet
          • Apr 2008
          • 2987

          Commit 62e771f has probably the logic reversed:

          Code:
          	/* Taking damage from terrain makes moving vital */
          	if (monster_taking_terrain_damage(mon)) {
          		/* If the player is not currently near the monster, no reason to flow */
          		if (mon->cdis >= mon->best_range) {
          			return false;
          		}
          
          		/* Monster is too far away to use sound or scent */
          		if (!monster_can_hear(c, mon) && !monster_can_smell(c, mon)) {
          			return false;
          		}
          	}
          I'd say the checks should be done when the monster is NOT taking damage, no?
          Last edited by PowerWyrm; February 20, 2020, 14:16.
          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

          • Nick
            Vanilla maintainer
            • Apr 2007
            • 9647

            Originally posted by PowerWyrm
            Commit 62e771f has probably the logic reversed:

            Code:
            	/* Taking damage from terrain makes moving vital */
            	if (monster_taking_terrain_damage(mon)) {
            		/* If the player is not currently near the monster, no reason to flow */
            		if (mon->cdis >= mon->best_range) {
            			return false;
            		}
            
            		/* Monster is too far away to use sound or scent */
            		if (!monster_can_hear(c, mon) && !monster_can_smell(c, mon)) {
            			return false;
            		}
            	}
            I'd say the checks should be done when the monster is NOT taking damage, no?
            OK, thanks, fixed in dev. Also I get to continue playing "Where is PowerWyrm up to in pulling in V changes?"
            One for the Dark Lord on his dark throne
            In the Land of Mordor where the Shadows lie.

            Comment

            • Nick
              Vanilla maintainer
              • Apr 2007
              • 9647

              New builds up on the nightlies page and angband.live (source is here) with the following changes:
              • Fix to the weird visual effect when there's a panel change while running, showing two players (thanks Diego)
              • Added back sounds for food changes (thanks PowerWyrm)
              • Stairs get torchlit (PowerWyrm)
              • Logic in monster fleeing from damaging terrain corrected (PowerWyrm)
              • Trap immunity and aggravation runes are now learned correctly (#4195)
              • Problems with door openeing and running with trap immunity fixed (#4235)
              • Upgrades to readme (thanks cameron ball and fruviad)
              • Change to scalable tiles in macOS port (hurrah!), and some display code correction (thanks backwardsEric)
              One for the Dark Lord on his dark throne
              In the Land of Mordor where the Shadows lie.

              Comment

              • mrfy
                Swordsman
                • Jul 2015
                • 328

                Sound is no longer working on MacOSX with the latest build.

                Comment

                • Nick
                  Vanilla maintainer
                  • Apr 2007
                  • 9647

                  Originally posted by mrfy
                  Sound is no longer working on MacOSX with the latest build.
                  bacwardsEric is all over this, fix coming soon.
                  One for the Dark Lord on his dark throne
                  In the Land of Mordor where the Shadows lie.

                  Comment

                  • Sphara
                    Knight
                    • Oct 2016
                    • 504

                    This is already in stable 4.2.0. but I'm curious how 'monsters learn from their mistakes' actually work. Does the monster need to be intelligent to learn what type of damage doesn't hurt player or what?

                    The Tarrasque breathed zero-damage fire through Narya at least thrice so it definitely did not learn anything during the long fight.

                    Comment

                    • Pete Mack
                      Prophet
                      • Apr 2007
                      • 6883

                      Sphara--it is correct for the occasional immune breath because you might have changed your equipment. It should be rare though, more like 1/5 to 1/10 the normal rate. Tarrasque usually breathes fire 1 in 6 turns (1/3 of spells and 1/2 of turns casting.) Was this the case?

                      Comment

                      • Sphara
                        Knight
                        • Oct 2016
                        • 504

                        Originally posted by Pete Mack
                        Sphara--it is correct for the occasional immune breath because you might have changed your equipment. It should be rare though, more like 1/5 to 1/10 the normal rate. Tarrasque usually breathes fire 1 in 6 turns (1/3 of spells and 1/2 of turns casting.) Was this the case?
                        Never switched the equipment. Narya was wielded throughout the fight. I think it breathed cold twice through Eonwe too (ImmCold).

                        Edit: For all I know, unless there isn't any 'intelligence' factor, only reasonable thing that caused it to breath through immunity I can come up with, was because it was stunned by Explosion spell. Otherwise, the mechanic didn't work at least the way I expected.
                        Last edited by Sphara; February 21, 2020, 14:44.

                        Comment

                        • Pete Mack
                          Prophet
                          • Apr 2007
                          • 6883

                          But how many times did it breathe disenchantment? Presumably many more than 2 or 3. That would mean it *did* learn that you have immunity, but "checked" that you didn't take it off. And yes, stunning might have an effect too. Don't know about that.

                          Comment

                          • Sphara
                            Knight
                            • Oct 2016
                            • 504

                            Pete - It did use Disenchantment the most. I did hockeystick it quite many times before I allowed him to do the first breath. The first one was fire breath and the ratio of Disen - Fire - Cold was about 6 - 3 - 2.

                            The reason I posted was that I thought it would NEVER try breathing through immunity twice.

                            Comment

                            • wobbly
                              Prophet
                              • May 2012
                              • 2633

                              Originally posted by Sphara
                              This is already in stable 4.2.0. but I'm curious how 'monsters learn from their mistakes' actually work. Does the monster need to be intelligent to learn what type of damage doesn't hurt player or what?

                              The Tarrasque breathed zero-damage fire through Narya at least thrice so it definitely did not learn anything during the long fight.
                              Code:
                              /* Not allowed to learn */
                              	if (!OPT(p, birth_ai_learn)) return;
                              
                              	/* Too stupid to learn anything */
                              	if (monster_is_stupid(mon)) return;
                              
                              	/* Not intelligent, only learn sometimes */
                              	if (!monster_is_smart(mon) && one_in_(2)) return;
                              
                              	/* Analyze the knowledge; fail very rarely */
                              	if (one_in_(100))
                              		return;

                              Comment

                              • Pete Mack
                                Prophet
                                • Apr 2007
                                • 6883

                                Wobbly--does this mean you can take of Narya once the monster learns your immunity (and presumably doesn't hit you in melee with the same element)?

                                Comment

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