valid.c

./lib/skills/psionici/valid.c · 959 B

From the archive h7v3.0a.tar.gz

Download the archive   « Back to the archive contents

/* VALID PSI POWERS *
 * When you add a power to the psi bin, you must also make sure that
 * you add it here, and whether or not it is a science or devotion.
 */

#define SCIENCE  3
#define DEVOTION 1

varargs valid_power(string power, status discipline) {
  mapping powers;
  mixed *tmp;

  powers = ([
	/* telepathic skills */
        "mind thrust"  : ({ DEVOTION, "telepathy", }),
        "id insinuation" : ({ DEVOTION, "telepathy", }),
        "ego whip" :       ({ DEVOTION, "telepathy", }),

	/* psychoportive skills */
        "teleport": ({ SCIENCE, "psychoportive", }),

	/* psychokinetic skills */
        "disintegrate": ({ SCIENCE, "psychokinetic", }),

	/* psychometabolic skills */
        "body weaponry": ({ DEVOTION, "psychometabolic", }),

	/* clairsentience skills */
        "object reading": ({ DEVOTION, "clairsentience", }),

  ]);

  tmp = powers[power];
  return (discipline) ? tmp[1] : tmp[0];
}

Site Stats

Snippets: 1791
Codebases: 571