Coffee Machine (#1370)(an instance of generic container made by Johnathon)     The coffee machine is very old and large. Lots of mysterious dials and      and levers decorate the front. Various pipes entwine around it, hissing      steam from their joints. Occasional burbling noises gloop forth. Coffee Machine contains Coffee Grounds. Go to location of this object, Johnathon's basement. VERB SOURCE CODE: get t*ake g*et: player:tell_lines(this:take_failed_msg()); player.location:announce(this:otake_failed_msg()); . has_coffee:
if ($object_utils:contains(this, this.grounds) && (this.coffee > 0))
return 1;
else
return 0;
endif
.
use:
if (this.coffee)
this.coffee = this.coffee - 1;
else
player:tell(this:empty_msg());
player.location:annouce(this:oempty_msg());
endif
.
empty_msg oempty_msg: "Copied from generic thing (#5):take_failed_msg by The_Mayor (#2) Tue Jul 19 11:47:01 1994 EDT"; set_task_perms(caller_perms()); return $string_utils:pronoun_sub(this.(verb)); . PROPERTY DATA:       coffee       grounds       value |