mirror of
https://github.com/tbamud/tbamud.git
synced 2026-02-23 03:51:52 +01:00
[Nov 12 2007] - Rumble
Updated users command to fix GET_INVIS_LEV bug. Updated the drink command to work in rooms where the sector type should logically allow it. [Oct 04 2007] - Rumble Increased the size of a mail message from 4k to 8k. Updated remove_player so that the players command would not show phantom users when someone self-deletes. Updated sedit_rooms_menu to prevent a crash bug when trying to display a shop with rooms that have been removed. [Nov 01 2007] - Rumble Updated mag_objectmagic bug where action description was not being used correctly on scrolls. Increased the size of MAX_RAW_INPUT_LENGTH and PLR_DESC_LENGTH. [Oct 19 2007] - Rumble Fixed a few more 128 bit MOB_FLAGGED bugs. [Oct 17 2007] - Rumble Fixed loading of non-128 bit prefs in load_char. (thanks Ziz) [Oct 15 2007] - Rumble Removed some prototypes leftover from the old history command. (thanks Rhade)
This commit is contained in:
@@ -825,8 +825,25 @@ ACMD(do_drink)
|
||||
return;
|
||||
|
||||
if (!*arg) {
|
||||
char buf[MAX_STRING_LENGTH];
|
||||
switch (SECT(IN_ROOM(ch))) {
|
||||
case SECT_WATER_SWIM:
|
||||
case SECT_WATER_NOSWIM:
|
||||
case SECT_UNDERWATER:
|
||||
if ((GET_COND(ch, HUNGER) > 20) && (GET_COND(ch, THIRST) > 0)) {
|
||||
send_to_char(ch, "Your stomach can't contain anymore!\r\n");
|
||||
}
|
||||
snprintf(buf, sizeof(buf), "$n takes a refreshing drink.");
|
||||
act(buf, TRUE, ch, 0, 0, TO_ROOM);
|
||||
send_to_char(ch, "You take a refreshing drink.\r\n");
|
||||
gain_condition(ch, THIRST, 1);
|
||||
if (GET_COND(ch, THIRST) > 20)
|
||||
send_to_char(ch, "You don't feel thirsty any more.\r\n");
|
||||
return;
|
||||
default:
|
||||
send_to_char(ch, "Drink from what?\r\n");
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (!(temp = get_obj_in_list_vis(ch, arg, NULL, ch->carrying))) {
|
||||
if (!(temp = get_obj_in_list_vis(ch, arg, NULL, world[IN_ROOM(ch)].contents))) {
|
||||
|
||||
Reference in New Issue
Block a user