
# Explanation of the format:
#
# N:book:index:name
# T:type:attack_type
# P:level:mana:power1:power2
#
#
# Where:
#
#    book = MAGE, PRIEST, ILLUSIONIST
#    index = 0-100
#    name = 30 char string
#    type = BOLT, BEAM, BALL, TPORT, DETECT, HEAL_SIMPLE, HEAL_FANCY,
#           MISC, BRAINWASH, INFO, ELEMENTS, DESTRUCTION, HEAL_FANCY2,
#	    DETECT2
#    attack_type = Look at GF_FOO in defines.h
#    level = 1-50
#    mana = 0-255
#    power1 = 1-10, sometimes has special meaning
#    power2 = 1-100
#
# Meaning of power1/2:
#
#  BOLT:              (p1+2)d(p2+5)
#  BEAM:              (p1+2)d(p1+2)
#  BALL:              rad p1, dam p2
#  TPORT:             
#
#      p1 = 1-6:   teleport rad p2/2
#      p1 = 7:     teleport vertically
#      p1 = 8:     WoR
#      p1 = 9-10:  alternation
#  
#  DETECT:
#
#      p1 = doors <- 1 stairs <- 2 traps <- 3 treasure <- 4 gold <- 5
#           objects <- 6 monsters <- 7 invisible <- 8 9 10
#
#  DETECT2:
#
#      p1 = 1:  doors
#      p1 = 2:  stairs
#      p1 = 3:  traps
#      p1 = 4:  treasure
#      p1 = 5:  gold
#      p1 = 6:  objects
#      p1 = 7:  monsters
#      p1 = 8-10:  invisible
#
#  HEAL_SIMPLE: heal & heal insanity (p1)d(p2) 
#  
#  HEAL_FANCY: heal by P2*4,  heal insanity p2
#
#      p1 = fear <- 1 cut <-2 stun <- 3 poison <- 4 DEX/CHR <- 5 STR <- 6
#           CON <- 7 WIS <- 8 INT <- 9 restore life levels <- 10
#
#  HEAL_FANCY2: heal foo by p2*4
#      p1 = 1:   fear
#      p1 = 2:   cut
#      p1 = 3:   stun
#      p1 = 4:   poison
#      p1 = 5:   DEX/CHR
#      p1 = 6:   STR
#      p1 = 7:   CON
#      p1 = 8:   WIS
#      p1 = 9:   INT
#      p1 = 10:  life levels
#
#  MISC:
#
#      p1 = 1:   light area
#      p1 = 2:   sheild
#      p1 = 3:   hero
#      p1 = 4:   blessed
#      p1 = 5:   food
#      p1 = 6:   speed
#      p1 = 7:   remove curses
#      p1 = 8:   warding glyph
#      p1 = 9:   recharge p2
#      p1 = 10:  remove all curse
#
#  BRAINWASH
#
#      p1 = 1:     fear monster p2/2
#      p1 = 2:     sleep monsters touch
#      p1 = 3:     turn undead
#      p1 = 4:     dispel undead/evil p2
#      p1 = 5:     teleport monster
#      p1 = 6:     poly monster
#      p1 = 7:     sleep monsters
#      p1 = 8:     banish evil p2
#      p1 = 9-10:  drain life p2*2
#
#  INFO
#
#      p1 = 1-3:   map area
#      p1 = 4-5:   identify
#      p1 = 6-7:   probing
#      p2 = 8-10:  mapping
#
#
#  ELEMENTS oppose foo by p2*2:
#
#      p1 = fire <- 1-2 cold <- 3-4 elec <- 5-6 acid <- 7-8 pois <- 9-10
#
#  DESTRUCTION
#
#      p1 = 1-3:   wall to mud
#      p1 = 4-5:   wall to chaos
#      p1 = 6:     destroy area
#      p1 = 7:     chaos destroy area
#      p1 = 8:     genocide
#      p1 = 9:     mass genocide
#      p1 = 10:    earthquake
#
#  WEAPONS
#
#      p1 = 1-2:   Enchant to-hit by p2/10
#      p1 = 3-4:   Enchant to-dam by p2/10
#      p1 = 5-6:   Enchant ac by p2/10
#      p1 = 7-8:   Brand ammo
#      p1 = 9-10:  Brand weapon

V:2.8.2

#################
#...............#
#..Mage Spells..#
#...............#
#################

N:MAGE:0:Magic Missile
T:BOLT:ARROW
P:1:1:1:1

N:MAGE:1:Detection I
T:DETECT
P:1:1:1:1

N:MAGE:2:Phase Door
T:TPORT
P:2:2:1:20

N:MAGE:3:Light Area
T:MISC
P:2:2:1:20

N:MAGE:4:Dimensional Tunnel
T:BOLT:AWAY_ALL
P:2:2:1:1

N:MAGE:5:Cure Light Wounds
T:HEAL_SIMPLE
P:3:3:3:5

N:MAGE:6:Detection II
T:DETECT
P:3:3:3:1

N:MAGE:7:Detection III
T:DETECT
P:4:10:5:1

N:MAGE:8:Stinking Cloud
T:BALL:POIS
P:5:2:2:15

N:MAGE:9:Confuse Monster
T:BOLT:CONF
P:5:3:2:4

N:MAGE:10:Lightning Bolt
T:BOLT:ELEC
P:5:4:3:10

N:MAGE:11:Trap/Door Destruction
T:BOLT:KILL_DOOR
P:6:6:1:1

N:MAGE:12:Sleep I
T:BOLT:SLEEP
P:6:7:3:7

N:MAGE:13:Cure Poison
T:HEAL_FANCY2
P:7:15:4:25

N:MAGE:14:Teleport Self
T:TPORT
P:7:10:1:60

N:MAGE:15:Spear of Light
T:BEAM:LITE
P:8:12:3:15

N:MAGE:16:Frost Bolt
T:BOLT:ICE
P:8:12:3:12

N:MAGE:17:Stone to Mud
T:DESTRUCTION
P:8:8:1:1

N:MAGE:18:Satisfy Hunger
T:MISC
P:8:20:5:1

N:MAGE:19:Recharge Item I
T:MISC
P:9:25:9:25

N:MAGE:20:Flare of Light
T:BALL:SLEEP
P:10:25:3:35

N:MAGE:21:Polymorph Other
T:BOLT:POLY
P:10:20:3:10

N:MAGE:22:Identify
T:INFO
P:11:30:4:1

N:MAGE:23:Fireball
T:BALL:FIRE
P:11:32:9:20

N:MAGE:24:Fire Bolt
T:BOLT:PLASMA
P:11:32:5:4

N:MAGE:25:Slow Monster
T:BOLT:SLOW
P:11:30:1:40

N:MAGE:26:Frost Ball
T:BALL:ICE
P:11:32:9:20

N:MAGE:27:Recharge Item II
T:MISC
P:11:25:9:50

N:MAGE:28:Teleport Others
T:BALL:AWAY_ALL
P:12:35:5:50

N:MAGE:29:Haste Self
T:MISC
P:12:30:6:30

N:MAGE:30:Ball Lightning
T:BALL:ELEC
P:11:32:9:20

N:MAGE:31:Word of Destruction
T:DESTRUCTION
P:12:35:6:15

N:MAGE:32:Door Creation
T:BOLT:MAKE_DOOR
P:13:30:1:1

N:MAGE:33:Stair Creation
T:BOLT:MAKE_STAIR
P:13:30:1:1

N:MAGE:34:Teleport Level
T:TPORT
P:13:15:7:1

N:MAGE:35:Earthquake
T:DESTRUCTION
P:14:25:10:1

N:MAGE:36:Word of Recall
T:TPORT
P:14:35:8:1

N:MAGE:37:Acid Bolt
T:BOLT:ACID
P:15:15:5:6

N:MAGE:38:Cloud Kill
T:BALL:MANA
P:15:15:5:35

N:MAGE:39:Acid Ball
T:BALL:ACID
P:15:15:5:45

N:MAGE:40:Ice Storm
T:BALL:ICE
P:15:15:5:45

N:MAGE:42:Meteor Swarm
T:BALL:METEOR
P:15:15:5:45

N:MAGE:43:Mana Storm
T:BALL:MANA
P:16:30:9:30

N:MAGE:44:Detection IV
T:DETECT
P:16:25:7:1

N:MAGE:45:Detection V
T:DETECT
P:16:35:10:1

N:MAGE:46:Recharge Item III
T:MISC
P:17:25:9:100

N:MAGE:47:Genocide
T:DESTRUCTION
P:18:40:8:1

N:MAGE:48:Mass Genocide
T:DESTRUCTION
P:19:50:9:1

N:MAGE:49:Resistance I
T:ELEMENTS
P:20:15:2:1

N:MAGE:50:Resistance II
T:ELEMENTS
P:21:15:4:1

N:MAGE:51:Resistance III
T:ELEMENTS
P:22:15:6:1

N:MAGE:52:Resistance IV
T:ELEMENTS
P:23:15:8:1

N:MAGE:53:Resistance V
T:ELEMENTS
P:24:15:10:1

N:MAGE:54:Heroism
T:MISC
P:25:35:3:50

N:MAGE:55:Shield
T:MISC
P:26:35:2:50

N:MAGE:56:Satisy Hunger
T:MISC
P:27:35:5:1

N:MAGE:57:Warding Glyph
T:MISC
P:28:35:8:1

N:MAGE:58:Alter Reality
T:TPORT
P:29:45:10:1

###################
#.................#
#..Priest Spells..#
#.................#
###################

N:PRIEST:0:Bless
T:MISC
P:1:1:4:25

N:PRIEST:1:Cure Light Wounds
T:HEAL_SIMPLE
P:2:5:2:4

N:PRIEST:2:Light
T:MISC
T:2:2:1:60

N:PRIEST:3:Remove Fear
T:HEAL_FANCY2
P:3:5:1:100

N:PRIEST:4:Turn Undead
T:BOLT:TURN_UNDEAD
P:4:3:5:5

N:PRIEST:5:Find Traps
T:DETECT2
P:5:8:3:1

N:PRIEST:6:Detect Doors/Stairs
T:DETECT
P:5:8:2:1

N:PRIEST:7:Slow Poison
T:HEAL_FANCY2
P:6:15:4:7

N:PRIEST:8:Scare Monster
T:BOLT:TURN_ALL
P:7:9:4:5

N:PRIEST:9:Portal
T:TPORT
P:8:10:1:20

N:PRIEST:10:Cure Serious Wounds
T:HEAL_FANCY
P:9:20:3:11

N:PRIEST:11:Holy Chant
T:BALL:DISP_UNDEAD
P:10:13:3:40

N:PRIEST:12:Sanctuary
T:TPORT
P:11:40:8:1

N:PRIEST:13:Satisfy Hunger
T:MISC
P:12:35:5:1

N:PRIEST:14:Remove Curse
T:MISC
P:12:50:7:1

N:PRIEST:15:Resist Heat and Cold
T:ELEMENTS
P:13:25:3:50

N:PRIEST:16:Neutralize Poison
T:HEAL_FANCY2
P:14:30:4:30

N:PRIEST:17:Orb of Draining
T:BALL:HOLY_ORB
P:15:20:9:35

N:PRIEST:18:Cure Critical Wounds
T:HEAL_FANCY
P:16:50:4:50

N:PRIEST:19:Sense Invisible
T:DETECT2
P:17:35:8:1

N:PRIEST:20:Protection from Evil
T:BRAINWASH
P:18:30:8:100

N:PRIEST:21:Earthquake
T:DESTRUCTION
P:19:45:10:1

N:PRIEST:22:Sense Surroundings
T:INFO
P:20:55:8:1

N:PRIEST:23:Cure Mortal Wounds
T:HEAL_FANCY
P:21:85:4:100

N:PRIEST:24:Turn Undead II
T:BRAINWASH
P:22:65:3:1

N:PRIEST:25:Prayer
T:HEAL_FANCY
P:22:80:10:10

N:PRIEST:26:Dispel Undead
T:BRAINWASH
P:23:75:4:50

N:PRIEST:27:Heal
T:HEAL_SIMPLE
P:24:100:3:200

N:PRIEST:28:Banish Evil
T:BRAINWASH
P:25:85:8:200

N:PRIEST:29:Glyph of Warding
T:MISC
P:26:45:8:1

N:PRIEST:30:Holy Word
T:BOLT:HOLY_ORB
P:27:55:5:25

N:PRIEST:31:Detect Monsters
T:DETECT2
P:28:45:7:1

N:PRIEST:32:Detection
T:DETECT
P:29:78:8:1

N:PRIEST:33:Recharging
T:MISC
P:30:80:9:100

N:PRIEST:34:Dispel Curse
T:MISC
P:30:75:10:1

N:PRIEST:35:Enchant Weapon Accuracy
T:WEAPONS
P:31:85:1:1

N:PRIEST:36:Enchant Weapon Damage
T:WEAPONS
P:31:85:3:1

N:PRIEST:37:Enchant Armour
T:WEAPONS
P:31:85:5:1

N:PRIEST:38:Elemental Brand
T:WEAPONS
P:31:85:9:1

N:PRIEST:39:Teleport Self
T:TPORT
P:32:25:1:100

N:PRIEST:40:Teleport Other
T:BOLT:AWAY_ALL
P:32:35:10:20

N:PRIEST:41:Teleport Level
T:TPORT
P:32:45:7:1

N:PRIEST:42:Alter Reality
T:TPORT
P:32:100:9:1

########################
#......................#
#..Illusionist Spells..#
#......................#
########################

N:ILLUSIONIST:0:Confusion
T:BOLT:CONF
P:1:1:1:1

N:ILLUSIONIST:1:Detect Monsters
T:DETECT2
P:1:1:7:1

N:ILLUSIONIST:2:Phase Door
T:TPORT
P:2:2:1:20

N:ILLUSIONIST:3:Light Area
T:MISC
P:2:2:1:60

N:ILLUSIONIST:4:Object Detection
T:DETECT2
P:3:5:6:1

N:ILLUSIONIST:5:Paranoia
T:BALL:TURN_ALL
P:4:10:3:5

N:ILLUSIONIST:6:Mind Rot
T:BOLT:BRAIN_SMASH
P:5:5:2:4

N:ILLUSIONIST:7:Find Hidden Traps/Doors
T:DETECT
P:6:4:2:1

N:ILLUSIONIST:8:Poisonous Orb
T:BALL:POIS
P:7:7:3:20

N:ILLUSIONIST:9:Cure Fear
T:HEAL_FANCY2
P:7:10:1:100

N:ILLUSIONIST:10:Sleep
T:BOLT:SLEEP
P:8:8:3:40

N:ILLUSIONIST:11:Door/Trap Destruction
T:BEAM:KILL_DOOR
P:9:15:1:1

N:ILLUSIONIST:12:Fog Cloud
T:BALL:CONF
P:10:20:6:40

N:ILLUSIONIST:13:Fear
T:BOLT:TURN_ALL
P:10:12:6:20

N:ILLUSIONIST:14:Remove Curse
T:MISC
P:11:30:7:1

N:ILLUSIONIST:15:Shadow Door
T:TPORT
P:12:35:1:100

N:ILLUSIONIST:16:Shadow Monster
T:BOLT:POLY
P:12:10:5:50

N:ILLUSIONIST:17:Stone to Mud
T:DESTRUCTION
P:12:10:1:1

N:ILLUSIONIST:18:Detect Invisible
T:DETECT2
P:13:25:10:1

N:ILLUSIONIST:19:Recharge Item I
T:MISC
P:14:25:9:10

N:ILLUSIONIST:20:Shadow Fiend
T:BOLT:MIND_BLAST
P:15:15:5:10

N:ILLUSIONIST:21:Cure Body & Mind
T:HEAL_SIMPLE
P:16:30:5:5

N:ILLUSIONIST:22:Chaos
T:BALL:CHAOS
P:17:25:9:25

N:ILLUSIONIST:23:Resist Heat & Cold
T:ELEMENTS
P:18:25:3:50

N:ILLUSIONIST:24:True Sight
T:DETECT
P:19:40:10:1

N:ILLUSIONIST:25:Slow Monsters
T:BALL:SLOW
P:20:14:9:50

N:ILLUSIONIST:26:Shadow Ball
T:BALL:DARK
P:21:18:3:100

N:ILLUSIONIST:27:Terror
T:BALL:TURN_ALL
P:21:18:3:100

N:ILLUSIONIST:28:Resistances
T:ELEMENTS
P:22:55:9:50

N:ILLUSIONIST:29:Shadow Dust
T:TPORT
P:22:20:7:1

N:ILLUSIONIST:30:Prismatic Wall
T:BOLT:MAKE_WALL
P:23:75:1:1

N:ILLUSIONIST:31:Prismatic Spray
T:BALL:LITE
P:24:28:3:100

N:ILLUSIONIST:32:Chromatic Shield
T:MISC
P:25:40:2:100

N:ILLUSIONIST:33:Probing
T:INFO
P:26:35:6:1

N:ILLUSIONIST:34:Bigby's Interposing Hand
T:BALL:MAKE_WALL
P:27:40:9:1

N:ILLUSIONIST:35:Bigby's Phantom Hand
T:BOLT:MIND_BLAST
P:28:45:10:25

N:ILLUSIONIST:36:Bigby's Forceful Hand
T:BEAM:MANA
P:29:50:5:10

N:ILLUSIONIST:37:Sphere of Light
T:BALL:LITE
P:30:65:9:100

N:ILLUSIONIST:38:Sphere of Dark
T:BALL:DARK
P:30:65:9:100

N:ILLUSIONIST:39:Sphere of Confusion
T:BALL:CONF
P:30:65:9:100

N:ILLUSIONIST:40:Sphere of Chaos
T:BALL:CHAOS
P:30:65:9:100

N:ILLUSIONIST:41:Sphere of Sound
T:BALL:SOUND
P:30:65:9:100

