Use symbolic names for shop repair costs
...and add costs to two places where the door you touched blew up (picking the lock and opening the door).
This commit is contained in:
@@ -442,7 +442,7 @@ xchar x, y;
|
||||
|
||||
} else if (IS_WALL(lev->typ)) {
|
||||
if (*in_rooms(x, y, SHOPBASE)) {
|
||||
add_damage(x, y, 10L * ACURRSTR);
|
||||
add_damage(x, y, SHOP_WALL_DMG);
|
||||
dmgtxt = "damage";
|
||||
}
|
||||
digtxt = "chew a hole in the wall.";
|
||||
@@ -472,7 +472,7 @@ xchar x, y;
|
||||
|
||||
} else if (IS_DOOR(lev->typ)) {
|
||||
if (*in_rooms(x, y, SHOPBASE)) {
|
||||
add_damage(x, y, 400L);
|
||||
add_damage(x, y, SHOP_DOOR_COST);
|
||||
dmgtxt = "break";
|
||||
}
|
||||
if (lev->doormask & D_TRAPPED) {
|
||||
|
||||
Reference in New Issue
Block a user