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:
wyld-sw
2015-08-05 12:48:22 -04:00
parent b0cb9aa549
commit 1e8dd801e3
7 changed files with 30 additions and 32 deletions

View File

@@ -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. */