Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old April 22, 2013, 09:33   #1
PowerWyrm
Prophet
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,899
PowerWyrm is on a distinguished road
[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 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 April 22, 2013, 15:16   #2
fizzix
Prophet
 
Join Date: Aug 2009
Location: Madison, Wisconsin, US
Posts: 3,023
fizzix is on a distinguished road
Quote:
Originally Posted by PowerWyrm View Post
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.
fizzix is offline   Reply With Quote
Old April 23, 2013, 04:31   #3
fizzix
Prophet
 
Join Date: Aug 2009
Location: Madison, Wisconsin, US
Posts: 3,023
fizzix is on a distinguished road
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.
fizzix is offline   Reply With Quote
Old April 23, 2013, 13:54   #4
PowerWyrm
Prophet
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,899
PowerWyrm is on a distinguished road
Quote:
Originally Posted by fizzix View Post
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 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 April 23, 2013, 14:36   #5
fizzix
Prophet
 
Join Date: Aug 2009
Location: Madison, Wisconsin, US
Posts: 3,023
fizzix is on a distinguished road
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.
fizzix is offline   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
Pits/nests and monsters that can escape them easily PowerWyrm Vanilla 13 February 29, 2012 13:10
[3.4-dev] Drakes in pits PowerWyrm Development 10 February 24, 2012 17:11
"Great" drops replaced by "good" drops in vaults: bug or feature? PowerWyrm Vanilla 14 February 27, 2010 16:54
monsters "pushing past" in 3.1.1 tortilla shrilla Vanilla 3 November 8, 2009 23:09
"repeat" Command just little bit "smarter" ClaytonAguiar Vanilla 8 June 17, 2009 16:01


All times are GMT +1. The time now is 13:11.


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