branch.c

./lib/skills/obj/branch.c · 582 B

From the archive heaven7_2v06.tar.gz

Download the archive   « Back to the archive contents

inherit "inherit/treasure";

string tree_location;

void reset(status arg){
  if(arg) return;
  set_id("branch");
  set_short("Branch");
  set_long("Its a lump of dead wood.\n");
  set_value(1);
  set_weight(1);
}

string set_tree_location(string str) {  return tree_location = str; }
string query_tree_location()         {  return tree_location; }  


void info() {
  if(tree_location) {
    write("This is from the tree growing at "+ 
           call_other(tree_location,"short") +".\n");
  }
}

status query_domain_safe() { return 1; }

/* Native Mode Move */

#include <move.h>

Site Stats

Snippets: 1791
Codebases: 571