Current master post 4.2.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Nick
    replied
    Originally posted by wobbly
    So how is innate + spell freq meant to work? If innate 3 & spell 4 is that:

    1/3 + 2/3 * 1/4?
    1/4 + 3/4 * 1/3?
    4/12 + 3/12? ( 2 & 2 would be always here)
    Something else?
    Spell is checked first, so your second one is right - 1/4 chance of a spell, then 1/3 * 3/4 of innate for a total of 1/2.

    Leave a comment:


  • wobbly
    replied
    So how is innate + spell freq meant to work? If innate 3 & spell 4 is that:

    1/3 + 2/3 * 1/4?
    1/4 + 3/4 * 1/3?
    4/12 + 3/12? ( 2 & 2 would be always here)
    Something else?

    Leave a comment:


  • Nick
    replied
    Thanks, pulled, new builds will be up soon.

    Leave a comment:


  • wobbly
    replied
    Code:
    void do_cmd_run(struct command *cmd)
    {
    	struct loc grid;
    	int dir;
    
    	/* Get arguments */
    	if (cmd_get_direction(cmd, "direction", &dir, false) != CMD_OK)
    		return;
    
    	if (player_confuse_dir(player, &dir, true))
    		return;
    Code:
    bool player_confuse_dir(struct player *p, int *dp, bool too)
    {
    	int dir = *dp;
    
    	if (p->timed[TMD_CONFUSED])
    		if ((dir == 5) || (randint0(100) < 75))
    			/* Random direction */
    			dir = ddd[randint0(8)];
    
    	/* Running attempts always fail */
    	if (too) {
    		msg("You are too confused.");
    		return true;
    	}
    pretty sure if player_confuse_dir will always return true if you tell it "too"

    Edit:Yeah working in mine now. Will open a pull request

    Edit2: I guess the "running attempts always fail" bit was literally true
    Last edited by wobbly; March 22, 2020, 15:47.

    Leave a comment:


  • moosferatu
    replied
    Looks like there might be a bug in the new running while confused logic. In the attached screenshot I am not confused, tried to run, and was unable to.
    Attached Files
    Last edited by moosferatu; March 22, 2020, 14:47.

    Leave a comment:


  • Nick
    replied
    New builds are now up on the nightlies page and angband.live (source is here) with the following changes:
    • Many new fixes from backwardsEric - I'm starting to run out of words for this. This lot includes:
      • More macOS fixes
      • Inclusion of some more tiles for new stuff
      • Stopping hangs in targeting
      • Preventing crashes when a commanded monsters is killed
      • Possible fix to regenerating uniques
    • Fixed a bug where a confused player trying to run could actually sometimes run a bit in the correct direction (thanks David Medley)
    • Fixed a bug where blackguards with bloodlust would randomly move (instead of randomly attacking a nearby monster - David again)
    • Stopped randart launchers from getting negative multipliers (#4275, thanks Sky)
    • Added a comment in object_property.txt to clarify why 0 values of type-mult are necessary (#4216)

    Leave a comment:


  • PowerWyrm
    replied
    Originally posted by Nick
    I didn't write it, and haven't actually looked very closely, but it doesn't seem to have caused me any problems. I just generated a new town, here's a screenshot - there seem to be two ruins in the lower row and one in the upper, next to the stairs.
    Hmm I see. My local copy has iterators instead of "for (y...) for (x...)" loops that's why I get an error. In V code, when the bounds are incorrect (west > east or north > south), fill_rectangle() actually does nothing and the "ruin" just consists of rubble. I just need add a bounds check in fill_rectangle() before my iterator.

    Leave a comment:


  • wobbly
    replied
    I don't get it either. I mean it seems to work out, but if you look at it without the "now blow it up bit"



    You can see that its spread out & invades the walls, its the magma.

    Leave a comment:


  • Nick
    replied
    Originally posted by PowerWyrm
    I don't understand build_ruin(). For me, each time I try to generate a town in debug mode, this crashes because either "west" is bigger than "east" or "north" is bigger than "south". And when I use the latest build without debug mode, the game doesn't crash but I never see any "ruin" (because I suppose fill_rectangle() absorbs the error and simply does nothing in that case).
    I didn't write it, and haven't actually looked very closely, but it doesn't seem to have caused me any problems. I just generated a new town, here's a screenshot - there seem to be two ruins in the lower row and one in the upper, next to the stairs.

    Leave a comment:


  • PowerWyrm
    replied
    I don't understand build_ruin(). For me, each time I try to generate a town in debug mode, this crashes because either "west" is bigger than "east" or "north" is bigger than "south". And when I use the latest build without debug mode, the game doesn't crash but I never see any "ruin" (because I suppose fill_rectangle() absorbs the error and simply does nothing in that case).

    Leave a comment:


  • DavidMedley
    replied
    Originally posted by Pete Mack
    This proposal is because melee classes are already so ridiculously OP?
    Not sure if you're referring to me, but if you are... When I said "it would be super annoying with a melee character" I could have expanded to say "and further imbalance the game in favor of shooters." Though if we went further and nerfed kiting then the balance could swing back in favor of melee characters.

    Leave a comment:


  • Nick
    replied
    Originally posted by PowerWyrm
    I think there's a little code error in build_store(), line 1540:

    Code:
    if (build_s - build_n > 1 && square_isfloor(c, loc(door.x, build_s + 1)))
    Everywhere else in the function, the negation is used before square_isfloor(), but not there, which seems suspicious.
    Thanks, I think you're correct.

    Originally posted by wobbly
    Bit of a minor issue, the / command (identify symbol) reads straight off the top of the object list. For example if I move spear to the top of object list & give it the , symbol, then the command returns "polearm" for identify ','. This is mostly ok '!' returns flask which works ok for potion & ',' returns food which works ok for mushroom, I guess the only questionable one is the mushroom patch case.

    Actually found a few more '^' is unknown symbol. '+' is closed door (which may be an issue for FA with trees). '#' is secret door.
    Yeah, the lookup_symbol() function has a whole lot of comments about how not ideal the method is. I'll file a bug, but not an urgent one.

    As for the ranged monsters keeping their distance, don't panic - I said more likely, not certain.

    Leave a comment:


  • Pete Mack
    replied
    This proposal is because melee classes are already so ridiculously OP?

    Leave a comment:


  • wobbly
    replied
    Haven't tried it, but I suspect you'll actually get mages doing a funny dance a certain distance away. Sils archers fire every turn, if they don't move they shoot. What does a V caster do when it reaches ideal range?

    Leave a comment:


  • DavidMedley
    replied
    Originally posted by Nick
    • Monsters at their preferred range are more likely to cast spells instead of advancing (#4307)
    This sounds like a very good change. Makes me think, "why do ranged/casty monsters advance at all after getting in range" and then "they should probably retreat a square if they're not going to shoot/cast" and then "geez that would be super annoying if I had a melee character" and then "well, monsters would just be kiting the player like the player kites monsters all the time" and then "really should be a way to nerf kiting for players and newly minted kiting monsters" and then "everyone will hate me for even suggesting such a thing."

    Leave a comment:

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