attack_num.c

final_realms_fluffos_v1/lib/table/attack_num.c · 440 B

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

string *attack_names;

int attack_num(string attack) { 
  if (!attack_names)
    attack_names = ({ "null", "sharp", "blunt", "piercing", "unarmed", 
    "acid", "age", "charm", "cold", "confusion", "dam", "disease", "fear",
    "fire", "light", "lightning", "missile", "paralysis", "petrification",
    "poison", "sleep", "special_attack", "stat_mod", "stunning", "undead",
    "wither" }); 
  return member_array(attack, attack_names);
} 

Site Stats

Snippets: 1791
Codebases: 571