Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old August 15, 2020, 04:20   #141
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,510
Donated: $60
Nick will become famous soon enough
Quote:
Originally Posted by PowerWyrm View Post
Effects with dice:x turns are actually lasting (x-1) turns, which means trying to set an effect with dice:1 actually does nothing. This is probably the reason why some temporary effects like stun disappear immediately since I think they are supposed to last one turn.

To fix this, I think decrease_timeouts() should be called before process_pending_commands() and not after so a duration of one turn actually lasts one turn.

Edit: this seems to work fine in PWMAngband after the change.
Sadly, process_pending_commands() is only in PWMAngband, inside process_player(); in V decrease_timeouts() happens inside process_world(), which is only called once every ten turns. Moreover, the PWMA game loop is quite different, and it's not clear to me exactly where I should move decrease_timeouts() to. My current thinking is in process_player() before the main do..while loop, but only on the tenth turn - do you think this sounds plausible?
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is online now   Reply With Quote
Old August 25, 2020, 08:59   #142
PowerWyrm
Prophet
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,808
PowerWyrm is on a distinguished road
Quote:
Originally Posted by Nick View Post
Sadly, process_pending_commands() is only in PWMAngband, inside process_player(); in V decrease_timeouts() happens inside process_world(), which is only called once every ten turns. Moreover, the PWMA game loop is quite different, and it's not clear to me exactly where I should move decrease_timeouts() to. My current thinking is in process_player() before the main do..while loop, but only on the tenth turn - do you think this sounds plausible?
The loop is different but the order should be roughly the same. Just move decrease_timeouts() before the code that checks for player input, since it should be where the timeouts are set.
__________________
PWMAngband variant maintainer - check http://powerwyrm.monsite-orange.fr (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Old August 27, 2020, 13:29   #143
Sphara
Swordsman
 
Join Date: Oct 2016
Location: Finland
Posts: 364
Sphara is on a distinguished road
So big poison breaths can destroy wands and staves now? Didn't know that but now that I know, I don't think it's a very good change.

This makes even more monsters dubious to fight. Well, at least for me, today was the last time I'm gonna fight a Spider of Gorgoroth ever.
Sphara is offline   Reply With Quote
Old August 27, 2020, 15:03   #144
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,510
Donated: $60
Nick will become famous soon enough
Quote:
Originally Posted by Sphara View Post
So big poison breaths can destroy wands and staves now?
Not that I'm aware of - and there's nothing in the code to indicate that would happen. What else was happening at the time?
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is online now   Reply With Quote
Old August 27, 2020, 15:19   #145
Sphara
Swordsman
 
Join Date: Oct 2016
Location: Finland
Posts: 364
Sphara is on a distinguished road
I lost some Constitution within the same attack. Got some message like "your skin itches" or something.

Gorgo spider was the only monster in the screen and it's poison breath was the only attack of the turn in question. "Your Staff of Banishment is destroyed!" was unfortunately one of the outcomes.

EDIT: oh, and I'm playing V 4.2.1. stable in angband.live. In case it matters.
Sphara is offline   Reply With Quote
Old August 27, 2020, 16:01   #146
Sideways
Knight
 
Join Date: Nov 2008
Posts: 687
Sideways is on a distinguished road
The code specifies occasional acid damage (including acid inventory damage) from big poison attacks. The good news is that you can protect yourself from this, all you need is acid immunity.
__________________
The Complainer worries about the lack of activity here these days.
Sideways is online now   Reply With Quote
Old August 27, 2020, 17:35   #147
Sphara
Swordsman
 
Join Date: Oct 2016
Location: Finland
Posts: 364
Sphara is on a distinguished road
Quote:
Originally Posted by Sideways View Post
The code specifies occasional acid damage (including acid inventory damage) from big poison attacks. The good news is that you can protect yourself from this, all you need is acid immunity.
Gotcha. Wear Thorin shield from now on, or avoid poison breathers completely.

Doesn't make sense to me at all. But thanks for the info!
Sphara is offline   Reply With Quote
Old August 27, 2020, 20:47   #148
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,831
Donated: $40
Pete Mack is on a distinguished road
Carry !rPoison for monsters like Ungoliant, and you should never see this effect. Max damage is only 266--most characters have more than enough HP to avoid secondary effects at this level of damage.
Pete Mack is offline   Reply With Quote
Old August 27, 2020, 21:21   #149
Sphara
Swordsman
 
Join Date: Oct 2016
Location: Finland
Posts: 364
Sphara is on a distinguished road
Quote:
Originally Posted by Pete Mack View Post
Carry !rPoison for monsters like Ungoliant, and you should never see this effect. Max damage is only 266--most characters have more than enough HP to avoid secondary effects at this level of damage.
Yeah. I'll keep this in mind if I have rPois spell or I am wearing Colluin. My late game inventory usually doesn't have space for things like potions of resist poison. I'll rather just ignore poison breathers.
Sphara is offline   Reply With Quote
Old August 27, 2020, 23:14   #150
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,510
Donated: $60
Nick will become famous soon enough
Quote:
Originally Posted by Sideways View Post
The code specifies occasional acid damage (including acid inventory damage) from big poison attacks. The good news is that you can protect yourself from this, all you need is acid immunity.
Oh right, yes, that Clearly my memory is fading...

It's an uncommon side-effect from big poison breathers - not as much as being hit by an actual acid attack.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reviving Iso-Angband, an isometric view addon for Angband Hajo Development 111 August 3, 2014 20:44


All times are GMT +1. The time now is 23:09.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.