-/*! \file bmagic.c
+/*! \file sorcery.c
* \brief evil magic used by monsters
*/
#include "monsters.h"
#include "combat.h"
-/* BLACK MAGIC
+/* SORCERY
*
- * Certain of the denizens of the dungeon have the power to use black magic
+ * Certain of the denizens of the dungeon have the power to use sorcery
* against the player.
*
* The "ordinary" lich may unleash bolts of necromantic force against
* The more potent order of demons known as defilers may cast curses against
* the player, or call down a column of fire to smite him.
*
- * Some forms of black magic may be defended against by wearing the proper
+ * Some forms of sorcery may be defended against by wearing the proper
* armour or putting on a suitable ring; others bypass all such defences to
* strike the player directly, although some of these can be evaded by those
* with high enough agility.
*/
-int use_black_magic(int mon)
+int mon_use_sorcery(int mon)
{
/* Returns zero for no spell selected, -1 for unsupported spell
* selected, 1 for supported spell selected. */
{
/*
* We lack LOS, but pass the 1-in-40 chance; use
- * black magic to relocate us to the player's location.
+ * sorcery to relocate us to the player's location.
*/
to_cast = MS_TELEPORT_ASSAULT;
}
else if (!zero_die(80))
{
/* we lack LOS, but passed the 1-in-80 chance to
- * close with the player by means of black magic. */
+ * close with the player by means of sorcery. */
to_cast = MS_TELEPORT_ASSAULT;
}
break;
else if (!zero_die(40))
{
/* we lack LOS, but passed the 1-in-40 chance to
- * close with the player by means of black magic. */
+ * close with the player by means of sorcery. */
to_cast = MS_TELEPORT_ASSAULT;
}
break;
-/* bmagic.h
- *
- * Copyright 2005 Martin Read
+/*! \file sorcery.h
+ * \brief Monster sorcery rules
+ */
+
+/* Copyright 2005-2013 Martin Read
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef BMAGIC_H
-#define BMAGIC_H
+#ifndef SORCERY_H
+#define SORCERY_H
/* XXX DATA TYPES XXX */
MS_TELEPORT_ASSAULT, /* Wizard, Archmage, Master Lich */
};
-extern int use_black_magic(int mon);
+extern int mon_use_sorcery(int mon);
extern void mon_curses(int mon);
extern void malignant_aura(void);
#endif
-/* bmagic.h */
+/* sorcery.h */
// vim:cindent