mirror of
https://github.com/tbamud/tbamud.git
synced 2026-04-01 01:47:19 +02:00
Resolved bug #89: Identical defines in codebase.
- GET_OBJ_PERM has been removed in favor of GET_OBJ_AFFECT. Implemented idea #55: Mail stamp cost. - Postmaster no longer mentions stamp price for immortals.
This commit is contained in:
parent
b0cb9aa549
commit
1e8dd801e3
7 changed files with 30 additions and 32 deletions
12
src/mail.c
12
src/mail.c
|
|
@ -301,14 +301,14 @@ static void postmaster_send_mail(struct char_data *ch, struct char_data *mailman
|
|||
return;
|
||||
}
|
||||
act("$n starts to write some mail.", TRUE, ch, 0, 0, TO_ROOM);
|
||||
snprintf(buf, sizeof(buf), "$n tells you, 'I'll take %d coins for the stamp.'\r\n"
|
||||
"$n tells you, 'Write your message. (/s saves /h for help).'",
|
||||
STAMP_PRICE);
|
||||
|
||||
act(buf, FALSE, mailman, 0, ch, TO_VICT);
|
||||
|
||||
if (GET_LEVEL(ch) < LVL_IMMORT)
|
||||
if (GET_LEVEL(ch) < LVL_IMMORT) {
|
||||
snprintf(buf, sizeof(buf), "$n tells you, 'I'll take %d coins for the stamp.'", STAMP_PRICE);
|
||||
act(buf, FALSE, mailman, 0, ch, TO_VICT);
|
||||
decrease_gold(ch, STAMP_PRICE);
|
||||
}
|
||||
|
||||
act("$n tells you, 'Write your message. (/s saves /h for help).'", FALSE, mailman, 0, ch, TO_VICT);
|
||||
|
||||
SET_BIT_AR(PLR_FLAGS(ch), PLR_MAILING); /* string_write() sets writing. */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue