orc.c

final_realms_fluffos_v1/lib/baseobs/races/orc.c · 636 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"

void setup() 
{
  set_long("An Orc is a carnivorous demi-human.\n");
  set_name("orc");
  set_light_limits(LIGHT_ORC_LOW, LIGHT_ORC_HIGH);
  reset_get();
}

void set_racial_bonuses() 
{
  previous_object()->adjust_bonus_str(2);
  previous_object()->adjust_bonus_wis(-1);
}

int query_skill_bonus(int lvl, string skill) 
{
  if (skill == "fighting.meelee")
    return 20;
  if (skill == "fighting.melee.sharp")
    return 30;
  return 0;
}

string query_desc(object ob) 
{
 if((int)ob->query_gender() == 1)
  return "An ugly male orc.\n";
 return "A disgusting female orc.\n";
}

Site Stats

Snippets: 1791
Codebases: 571