1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-07-31 18:02:26 +01:00

Merge pull request #1879 from NeroOneTrueKing/patch-cant-sell-summoned-objs

Shopkeepers shouldn't buy summoned items
This commit is contained in:
Chris-plus-alphanumericgibberish 2022-03-05 13:04:18 -05:00 committed by GitHub
commit 7f45206a2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3239,6 +3239,7 @@ move_on:
|| eshkp->billct == BILLSZ
|| obj->oclass == BALL_CLASS
|| obj->oclass == CHAIN_CLASS || offer == 0L
|| get_ox(obj, OX_ESUM)
|| (obj->oclass == FOOD_CLASS && obj->oeaten)
|| (Is_candle(obj) &&
obj->age < 20L * (long)objects[obj->otyp].oc_cost)) {