Shopkeepers bill you for using their bear trap or land mine
This commit is contained in:
@@ -2880,6 +2880,7 @@ use_trap(struct obj *otmp)
|
||||
}
|
||||
}
|
||||
You("begin setting %s%s.", shk_your(buf, otmp), trapname(ttyp, FALSE));
|
||||
use_unpaid_trapobj(otmp, u.ux, u.uy);
|
||||
set_occupation(set_trap, occutext, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
17
src/shk.c
17
src/shk.c
@@ -5523,4 +5523,21 @@ globby_bill_fixup(struct obj *obj_absorber, struct obj *obj_absorbed)
|
||||
return;
|
||||
}
|
||||
|
||||
/* Shopkeeper bills for use of a land mine or bear trap they own */
|
||||
void
|
||||
use_unpaid_trapobj(struct obj *otmp, coordxy x, coordxy y)
|
||||
{
|
||||
if (otmp->unpaid) {
|
||||
if (!Deaf) {
|
||||
struct monst *shkp = find_objowner(otmp, x, y);
|
||||
|
||||
if (shkp && !muteshk(shkp)) {
|
||||
SetVoice(shkp, 0, 80, 0);
|
||||
verbalize("You set it, you buy it!");
|
||||
}
|
||||
}
|
||||
bill_dummy_object(otmp);
|
||||
}
|
||||
}
|
||||
|
||||
/*shk.c*/
|
||||
|
||||
Reference in New Issue
Block a user