sp_torch.c

./lib/skills/obj/sp_torch.c · 834 B

From the archive h7v3.0a.tar.gz

Download the archive   « Back to the archive contents

inherit "objects/torch";

void reset(status arg) {
  if(arg) return;
  set_short("Stick");
  set_name("stick");
  set_alt_name("torch");
  set_fuel(6000);
  set_light_intensity(2);
  set_value(40);
}

void long(status wiz) {
  if(query_time_left() != -1)
    write("This is a piece of timber that burns with an enhanced magical\n"+
          "flame. The flame looks much brighter, and seems to burn much\n"+
          "longer then a normal flame.\n");
  else
    write("This stick looks slightly charred on the end.\n");
}

void dispel_magic() {  time_out(); }


status cast_spell(object caster,object target,object prev,int level) {
  object ob;
  int i;

  for(i = 1; (ob = present("stick "+ i, target)) && ob != this_object();
i++);
  command("light stick "+i, target);
  return 1;
}

  

/* Native Mode Move */

#include <move.h>

Site Stats

Snippets: 1791
Codebases: 571