fix #H2680 - IDing unpaid gem should adjust price
Another one from 6.5 years ago, identifying a type of gem should give a new price for any unpaid gems of that type and adjust shopping bill accordingly. Report was for rubbing with touchstone and learning worthless glass with price not changing until the learned 'gem' was dropped. Fix works for that and also other forms of identification (and for amnesia, raising prices of forgotten gems); no dropping is required for the price to change. Theoretically could apply to any type of item, but prices of gems are by far the most sensitive to whether or not they're identified.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 extern.h $NHDT-Date: 1545182146 2018/12/19 01:15:46 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.674 $ */
|
||||
/* NetHack 3.6 extern.h $NHDT-Date: 1545383614 2018/12/21 09:13:34 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.675 $ */
|
||||
/* Copyright (c) Steve Creps, 1988. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -2220,6 +2220,7 @@ E long FDECL(contained_cost,
|
||||
(struct obj *, struct monst *, long, BOOLEAN_P, BOOLEAN_P));
|
||||
E long FDECL(contained_gold, (struct obj *));
|
||||
E void FDECL(picked_container, (struct obj *));
|
||||
E void FDECL(gem_learned, (int));
|
||||
E void FDECL(alter_cost, (struct obj *, long));
|
||||
E long FDECL(unpaid_cost, (struct obj *, BOOLEAN_P));
|
||||
E boolean FDECL(billable, (struct monst **, struct obj *, CHAR_P, BOOLEAN_P));
|
||||
|
||||
Reference in New Issue
Block a user