costly_alteration() tweaking (trunk only)

For cancellation I accidentally used terrain type WATER when I meant
object type POT_WATER, so being charged for cancelling holy or unholy water
wasn't working.  When I first put in COST_UNHOLY the name made some sense
based on its usage, but after later adding COST_UNBLSS it didn't any more;
change it to COST_UNCURS.

     A shopkeeper's complaint that you're uncursing or unblessing his wares
(only applies to water) now sets bknown flag since you know that the object
has become uncursed.  I hadn't realized that confused remove curse only
affects uncursed objects; this greatly simplifies extra code I added there
for costly_alteration().

[No fixes entry needed.]
This commit is contained in:
nethack.rankin
2005-04-15 02:41:53 +00:00
parent 1a2ebd1ce9
commit 4e9c26fc28
5 changed files with 28 additions and 37 deletions

View File

@@ -1693,7 +1693,7 @@ dodip()
hcolor(NH_AMBER));
obj->bknown = 1;
if (obj->otyp == POT_WATER && obj->unpaid)
costly_alteration(obj, COST_UNHOLY);
costly_alteration(obj, COST_UNCURS);
uncurse(obj);
poof:
if(!(objects[potion->otyp].oc_name_known) &&