| 1498 | } |
| 1499 | |
| 1500 | void |
| 1501 | desecrate_altar(boolean highaltar, aligntyp altaralign) |
| 1502 | { |
| 1503 | char gvbuf[BUFSZ]; |
| 1504 | |
| 1505 | /* |
| 1506 | * REAL BAD NEWS!!! High altars cannot be converted. Even an attempt |
| 1507 | * gets the god who owns it truly pissed off. The same effect for |
| 1508 | * deliberately destroying a normal altar. |
| 1509 | */ |
| 1510 | /* if you did this to your own altar, your god will hold a grudge... */ |
| 1511 | if (altaralign == u.ualign.type) { |
| 1512 | adjalign(-20); |
| 1513 | u.ugangr += 5; |
| 1514 | } |
| 1515 | You_feel("the air around you grow charged..."); |
| 1516 | pline("Suddenly, you realize that %s has noticed you...", |
| 1517 | align_gname(altaralign)); |
| 1518 | Sprintf(gvbuf, "So, mortal! You dare desecrate my %s!", |
| 1519 | highaltar ? "High Temple" : "altar"); |
| 1520 | godvoice(altaralign, gvbuf); |
| 1521 | /* Throw everything we have at the player */ |
| 1522 | god_zaps_you(altaralign); |
| 1523 | } |
| 1524 | |
| 1525 | /* offering the Amulet on a high altar (checked by caller) ends the game; |
| 1526 | we don't declare this 'NORETURN' because done() can return (if called |
no test coverage detected