shade.c
final_realms_fluffos_v1/lib/baseobs/races/shade.c · 1.0 KB
From the archive final_realms_fluffos_v1.zip
Download the archive « Back to the archive contents
inherit "/std/races/standard";
string *inedible;
void setup() {
set_long("A dark and evil crossbreed of a sentient race and a daemon from " "plane of shadows.\n");
set_name("shade");
reset_get();
set_light_limits(-50,200);
}
void set_racial_bonuses() {
previous_object()->adjust_bonus_int(500);
previous_object()->adjust_bonus_dex(5000);
previous_object()->adjust_bonus_str(5000);
previous_object()->adjust_bonus_wis(500);
previous_object()->adjust_bonus_con(500);
inedible = ({ "skull", "teeth" });
}
int query_skill_bonus(int lvl, string skill) {
if (skill == "fighting")
return 1300;
if (skill == "faith")
return 11300;
if (skill == "other")
return 1300;
return 1000;
}
string query_desc(object ob) {
if ((int)ob->query_gender() == 1)
return "You want to smile when you see a nerd like him, but you know he "
"won't like it..\n";
return "You can't understand why a girl can be such a nerd.\n";
}
int query_eat(string type) {
return (member_array(type, inedible) == -1);
}