forked from github/server
REsourcen früher sehen können.
This commit is contained in:
parent
97db885e7d
commit
4d23d26aa0
|
@ -105,7 +105,10 @@ visible_default(const rawmaterial *res, int skilllevel)
|
||||||
* plus current level of difficulty */
|
* plus current level of difficulty */
|
||||||
{
|
{
|
||||||
const struct item_type * itype = olditemtype[res->type->_itype];
|
const struct item_type * itype = olditemtype[res->type->_itype];
|
||||||
if (res->level + itype->construction->minskill <= skilllevel+1) {
|
if (res->level<=1 && res->level + itype->construction->minskill <= skilllevel+1) {
|
||||||
|
assert (res->amount>0);
|
||||||
|
return res->amount;
|
||||||
|
} else if (res->level + itype->construction->minskill <= skilllevel+2) {
|
||||||
assert (res->amount>0);
|
assert (res->amount>0);
|
||||||
return res->amount;
|
return res->amount;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue