add aggravation surcharge to all billed items */
| 1359 | |
| 1360 | /* add aggravation surcharge to all billed items */ |
| 1361 | staticfn void |
| 1362 | rile_shk(struct monst *shkp) |
| 1363 | { |
| 1364 | NOTANGRY(shkp) = FALSE; /* make angry */ |
| 1365 | if (!ESHK(shkp)->surcharge) { |
| 1366 | long surcharge; |
| 1367 | struct bill_x *bp = ESHK(shkp)->bill_p; |
| 1368 | int ct = ESHK(shkp)->billct; |
| 1369 | |
| 1370 | ESHK(shkp)->surcharge = TRUE; |
| 1371 | while (ct-- > 0) { |
| 1372 | surcharge = (bp->price + 2L) / 3L; |
| 1373 | bp->price += surcharge; |
| 1374 | bp++; |
| 1375 | } |
| 1376 | } |
| 1377 | } |
| 1378 | |
| 1379 | /* wakeup and/or unparalyze shopkeeper */ |
| 1380 | staticfn void |
no outgoing calls
no test coverage detected