Ejemplo n.º 1
0
// Spam chance changed from random(6) to random(15)
// Yoda - 990410
mixed weapon_hit(object attacker)
{
  switch(random(15))
  {
    case 0: W("You wish you were somewhere else fishing instead of here.\n");
            S(C(query_wield()->QN)+" puts some bait on the hook of the "+
              "fishing pole.\n");
            return 0;
      break;
    case 1: W("You start telling your enemy a fish tale, hoping to "+
              "impress.\n");
            S(C(query_wield()->QN)+" says: Once I caught a fish that was so "+
              "big it ate my boat. I had to wrestle it and kill it with my "+
              "bare hands!\n");
            return 0;
      break;
    case 2: W("You start to think nostalgically of the one that got away...\n");
            S(C(query_wield()->QN)+" says: I once hooked a whale with this "+
              "pole. I would have caught it too, if only the line hadn't "+
              "snapped *ack*!\n");
            return 0;
      break;
    default: return 0;
      break;
  }
}
Ejemplo n.º 2
0
void do_unwield() {
	object who;
	who = query_wield();
	if(!who) return;
  who->remove_hook("__attack");
  return;
}
Ejemplo n.º 3
0
void do_wield() {
	object who;
	who = query_wield();
	if(!who) return;
	who->add_hook("__attack",store_fp("do_steal"));
	return;
}