Current master post 4.2.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • wobbly
    replied
    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;

    Leave a comment:


  • Sphara
    replied
    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.

    Leave a comment:


  • Pete Mack
    replied
    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.

    Leave a comment:


  • Sphara
    replied
    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.

    Leave a comment:


  • Pete Mack
    replied
    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?

    Leave a comment:


  • Sphara
    replied
    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.

    Leave a comment:


  • Nick
    replied
    Originally posted by mrfy
    Sound is no longer working on MacOSX with the latest build.
    bacwardsEric is all over this, fix coming soon.

    Leave a comment:


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

    Leave a comment:


  • Nick
    replied
    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)

    Leave a comment:


  • Nick
    replied
    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?"

    Leave a comment:


  • PowerWyrm
    replied
    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.

    Leave a comment:


  • Nick
    replied
    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.

    Leave a comment:


  • Pete Mack
    replied
    Gothmog's lash is made of fire in canon, yes.

    Leave a comment:


  • PowerWyrm
    replied
    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.

    Leave a comment:


  • Pete Mack
    replied
    There are dungeon books for each class, yes.But only one town book

    Leave a comment:

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