… | |
… | |
1271 | static void |
1271 | static void |
1272 | apply_sign (object *op, object *sign, int autoapply) |
1272 | apply_sign (object *op, object *sign, int autoapply) |
1273 | { |
1273 | { |
1274 | if (sign->has_dialogue ()) |
1274 | if (sign->has_dialogue ()) |
1275 | { |
1275 | { |
1276 | op->statusmsg (form ("Maybe you should I<talk> to the %s instead?", &sign->name)); |
1276 | op->statusmsg (format ("Maybe you should I<talk> to the %s instead?", &sign->name)); |
1277 | return; |
1277 | return; |
1278 | } |
1278 | } |
1279 | |
1279 | |
1280 | if (!sign->msg) |
1280 | if (!sign->msg) |
1281 | { |
1281 | { |
1282 | op->statusmsg ("Nothing is written on it."); |
1282 | op->contr->infobox (MSG_CHANNEL ("examine"), |
|
|
1283 | format ("T<%s>\n\n Nothing %sis written on it.", |
|
|
1284 | &sign->name, |
|
|
1285 | sign->name == sign->arch->name ? "" : "else ")); |
1283 | return; |
1286 | return; |
1284 | } |
1287 | } |
1285 | |
1288 | |
1286 | if (sign->stats.food) |
1289 | if (sign->stats.food) |
1287 | { |
1290 | { |
1288 | if (sign->last_eat >= sign->stats.food) |
1291 | if (sign->last_eat >= sign->stats.food) |
1289 | { |
1292 | { |
1290 | if (!sign->move_on) |
1293 | if (!sign->move_on) |
1291 | op->statusmsg ("You cannot read it anymore."); |
1294 | op->failmsg ("You cannot read it anymore."); |
1292 | |
1295 | |
1293 | return; |
1296 | return; |
1294 | } |
1297 | } |
1295 | |
1298 | |
1296 | if (!QUERY_FLAG (op, FLAG_WIZPASS)) |
1299 | if (!QUERY_FLAG (op, FLAG_WIZPASS)) |