github pull request #733 - prices of unID'd gems
Pull request from vultur-cadens: don't change unID'd gem prices when source changes insert some new object before them or the game gets rebuilt with different featues enabled such as MAIL. This is more about keeping the spoiler table in the wiki accurate than anything to do with game play. It definitely gives players who use spoilers an advantage over ones who don't, but does so in such an insignificant aspect of play that it likely doesn't matter. I'm fairly sure that the remark that keeping the prices the same is what the original implementor intended is not correct. I don't recall who implemented this and the commit log for the first cvs repository is long gone so it's moot. Fixes #733
This commit is contained in:
@@ -2337,8 +2337,9 @@ set_cost(register struct obj* obj, register struct monst* shkp)
|
||||
/* different shop keepers give different prices */
|
||||
if (objects[obj->otyp].oc_material == GEMSTONE
|
||||
|| objects[obj->otyp].oc_material == GLASS) {
|
||||
tmp = (obj->otyp % (6 - shkp->m_id % 3));
|
||||
tmp = ((obj->otyp - FIRST_GEM) % (6 - shkp->m_id % 3));
|
||||
tmp = (tmp + 3) * obj->quan;
|
||||
divisor = 1L;
|
||||
}
|
||||
} else if (tmp > 1L && !(shkp->m_id % 4))
|
||||
multiplier *= 3L, divisor *= 4L;
|
||||
|
||||
Reference in New Issue
Block a user