void heart_beat() { object tp = environment(); object ob; if (!tp || !tp->is_living() || tp != query_worn()) return; if (tp->query_level() < 5) return; if (random(100) < 50) return; if (sizeof(tp->query_wielded())) return; if (!(ob = tp->query_current_attacker())) return; message("info", "%^ORANGE%^You clock your enemy right in the head!%^RESET%^", tp); tell_room(environment(tp), "%^ORANGE%^"+tp->query_cap_name()+ " clocks "+ob->query_cap_name()+" right in the head!%^RESET%^", ({ ob, tp }));
string query_long() { string str; str =::query_long(); if (query_worn()) { str += " It fits very well, and since it is thick and well " + "made it probably offers some protection against blows."; } else { str += " It is thick and well made. On the inside you a label. " + "The label says: ...."; } if (query_lit()) { str += " The wizard's hat is glowing brightly."; } return str; }