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:
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:
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
In fact, this is easily explained. Excerpt from the code:
Code:
if (rating > 250000) rating = 250000; c->obj_rating += (rating / 10) * (rating / 10);
Using a percent of the rating would probably fix the problem:
Code:
c->obj_rating += (rating / 100) * (rating / 100);
Comment