god.c

final_realms_fluffos_v1/lib/baseobs/races/god.c · 990 B

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

inherit "/std/races/standard";
#include "light_defs.inc"

string *inedible;

void setup() {
  set_long("A God is the ruler of a MUD.\n");
  set_name("god");
  set_light_limits(LIGHT_GOD_LOW, LIGHT_GOD_HIGH);
  reset_get();
}

void set_racial_bonuses() {
  previous_object()->adjust_bonus_int(97);
  previous_object()->adjust_bonus_dex(97);
  previous_object()->adjust_bonus_str(97);
  previous_object()->adjust_bonus_wis(97);
  previous_object()->adjust_bonus_con(97);
  inedible = ({ "skull", "teeth" });
}

int query_skill_bonus(int lvl, string skill) {
  return 100;
}

string query_desc(object ob) {
  switch((int)ob->query_gender())
  {
    case 1 : return "You stand in awe at the sight of a God.\n";
    case 2 : return "You are stunned by the unearthly beauty of a Goddess.\n";
    case 3 : return "You see a strange bisexual God.\n";
    default: return "You see a God with no apparent sex.\n";
  }
}

int query_eat(string type) {
  return (member_array(type, inedible) == -1); 
}

Site Stats

Snippets: 1791
Codebases: 571