示例#1
0
文件: liquid.c 项目: shentino/simud
void on_move( object src ) {
   ::on_move( src );
   if( !src ) return;
   if( !solid && !environment()->query_container() ) {
      object old_targ;

      old_targ = query_target();
      set_target(this_object());
      if( this_player() )
         this_player()->msg_local( "~CACT~Subt ~vertdissipate as ~name ~verbpour it out.~CDEF" );
      set_target( old_targ );
      destruct( this_object() );
   }
}
示例#2
0
int check() {
  object tp=this_object()->query_caster();

  if (!tp) return 0;

  tp->clean_up_attackers();

  if (sizeof(tp->query_attackers()))
    return notify_fail("You are too busy with combat.\n");

  if (tp->query_sp() < 25)
    return notify_fail("You are too tired.\n");

  if (tp->query_mp() < 40)
    return notify_fail("You are too low on magic.\n");

  heshe = query_target()->query_subjective();
  
  return 1;
}