Angband.oook.cz
Angband.oook.cz
AboutDownloadVariantsLadderForumCompetitionSpoilersComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old June 28, 2012, 16:36   #1
PowerWyrm
Knight
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 728
PowerWyrm is on a distinguished road
[3.4RC] There may not be much interesting here...

Level was generated with a D pit and a GCV, I was expecting "superb treasures"...

In fact, this is easily explained. Excerpt from the code:

Code:
if (rating > 250000) rating = 250000;

        c->obj_rating += (rating / 10) * (rating / 10);
obj_rating is coded on an unsigned integer, which maxes at roughly 4e+9. Any WoG, Kelek or high DSM will easily get a max rating of 250k when generated out of depth in a GCV, which boosts the object rating by 625mil. And a GCV easily has more than 7-8 of those, boosting object rating over the MAXINT limit.

Using a percent of the rating would probably fix the problem:

Code:
c->obj_rating += (rating / 100) * (rating / 100);
This means losing a bit of accuracy with low ratings, but I don't think it matters much what type of "cobwebs" you get on a junk level
__________________
PWMAngband variant maintainer - check http://www.mangband.org/forum/viewforum.php?f=9 to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Old June 28, 2012, 16:41   #2
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 5,910
Derakon is on a distinguished road
There are cobwebs of shining mithril here!

Seriously though, good catch. It's amazing how many rollover bugs we've had to deal with lately; are we just trying for too much resolution or something?
Derakon is online now   Reply With Quote
Old June 28, 2012, 18:05   #3
wobbly
Swordsman
 
Join Date: May 2012
Location: Adelaide, Australia
Posts: 264
wobbly is on a distinguished road
Just watch out for that mithril spider....

I'm currently searching any level with more then scraps of junks. 2 egos, an artifact, a ring of free action & gloves of slaying was merely "worthwhile" on dlevel 13.
wobbly 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
[3.4RC - Win32 client]Graphic glitch for Tile Multipliers Smiling Spectre Vanilla 1 June 22, 2012 12:33
[3.4RC - Win32 client]No stacking piles anymore? Smiling Spectre Vanilla 2 June 22, 2012 12:07
[3.4RC - Win32 client] Map not displayed properly when number of columns is too high PowerWyrm Vanilla 0 June 20, 2012 10:59
[3.4RC - Win32 client] Minimap with tiles PowerWyrm Vanilla 3 June 20, 2012 08:32
Interesting scroll names. Whelk Vanilla 5 May 14, 2008 10:51


All times are GMT +1. The time now is 20:35.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.