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:
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. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user