/* $Id: spellfn.c,v 1.666 2004/09/20 10:50:19 shrike Exp $ */ /************************************************************************************ * Copyright 2004 Astrum Metaphora consortium * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * * * http://www.apache.org/licenses/LICENSE-2.0 * * * * Unless required by applicable law or agreed to in writing, software * * distributed under the License is distributed on an "AS IS" BASIS, * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and * * limitations under the License. * * * ************************************************************************************/ #include <stdio.h> #include "typedef.h" #include "namedp.h" #include "spellfn.h" namedp_t spellfn_table[] = { { "spell_deadly_cloud", spell_deadly_cloud }, { "spell_abort", spell_abort }, { "spell_shrink", spell_shrink }, { "spell_acid_blast", spell_acid_blast }, { "spell_carrion_swarm", spell_carrion_swarm }, { "spell_armor", spell_armor }, { "spell_bless", spell_bless }, { "spell_blindness", spell_blindness }, { "spell_burning_hands", spell_burning_hands }, { "spell_call_lightning", spell_call_lightning }, { "spell_calm", spell_calm }, { "spell_cancellation", spell_cancellation }, { "spell_cause_critical", spell_cause_critical }, { "spell_cause_light", spell_cause_light }, { "spell_cause_serious", spell_cause_serious }, { "spell_healing_light", spell_healing_light }, { "spell_chain_lightning", spell_chain_lightning }, { "spell_charm_person", spell_charm_person }, { "spell_fascinate", spell_fascinate }, { "spell_chill_touch", spell_chill_touch }, { "spell_colour_spray", spell_colour_spray }, { "spell_continual_light", spell_continual_light }, { "spell_control_weather", spell_control_weather }, { "spell_create_food", spell_create_food }, { "spell_create_rose", spell_create_rose }, { "spell_create_spring", spell_create_spring }, { "spell_create_water", spell_create_water }, { "spell_cure_blindness", spell_cure_blindness }, { "spell_cure_critical", spell_cure_critical }, { "spell_cure_disease", spell_cure_disease }, { "spell_cure_light", spell_cure_light }, { "spell_cure_poison", spell_cure_poison }, { "spell_cure_serious", spell_cure_serious }, { "spell_curse", spell_curse }, { "spell_demonfire", spell_demonfire }, { "spell_detect_evil", spell_detect_evil }, { "spell_detect_good", spell_detect_good }, { "spell_detect_hidden", spell_detect_hidden }, { "spell_detect_invis", spell_detect_invis }, { "spell_detect_magic", spell_detect_magic }, { "spell_detect_poison", spell_detect_poison }, { "spell_detect_undead", spell_detect_undead }, { "spell_disintegrate", spell_disintegrate }, { "spell_purify", spell_purify }, { "spell_dispel_evil", spell_dispel_evil }, { "spell_dispel_good", spell_dispel_good }, { "spell_dispel_magic", spell_dispel_magic }, { "spell_earthquake", spell_earthquake }, { "spell_enchant_armor", spell_enchant_armor }, { "spell_enchant_weapon", spell_enchant_weapon }, { "spell_enlarge", spell_enlarge }, { "spell_animation", spell_animation }, { "spell_hunger_weapon", spell_hunger_weapon }, { "spell_energy_drain", spell_energy_drain }, { "spell_faerie_fire", spell_faerie_fire }, { "spell_faerie_fog", spell_faerie_fog }, { "spell_farsight", spell_farsight }, { "spell_fireball", spell_fireball }, { "spell_firebolt", spell_firebolt }, { "spell_icebolt", spell_icebolt }, { "spell_fireproof", spell_fireproof }, { "spell_flamestrike", spell_flamestrike }, { "spell_floating_disc", spell_floating_disc }, { "spell_fly", spell_fly }, { "spell_frenzy", spell_frenzy }, { "spell_gate", spell_gate }, { "spell_giant_strength", spell_giant_strength }, { "spell_harm", spell_harm }, { "spell_haste", spell_haste }, { "spell_heal", spell_heal }, { "spell_heat_metal", spell_heat_metal }, { "spell_holy_word", spell_holy_word }, { "spell_identify", spell_identify }, { "spell_infravision", spell_infravision }, { "spell_invisibility", spell_invisibility }, { "spell_know_alignment", spell_know_alignment }, { "spell_lightning_bolt", spell_lightning_bolt }, { "spell_locate_object", spell_locate_object }, { "spell_magic_missile", spell_magic_missile }, { "spell_mass_healing", spell_mass_healing }, { "spell_mass_invis", spell_mass_invis }, { "spell_nexus", spell_nexus }, { "spell_pass_door", spell_pass_door }, { "spell_plague", spell_plague }, { "spell_poison", spell_poison }, { "spell_portal", spell_portal }, { "spell_protection_evil", spell_protection_evil }, { "spell_protection_good", spell_protection_good }, { "spell_ray_of_truth", spell_ray_of_truth }, { "spell_recharge", spell_recharge }, { "spell_refresh", spell_refresh }, { "spell_remove_curse", spell_remove_curse }, { "spell_sanctuary", spell_sanctuary }, { "spell_black_shroud", spell_black_shroud }, { "spell_shocking_grasp", spell_shocking_grasp }, { "spell_shield", spell_shield }, { "spell_sleep", spell_sleep }, { "spell_slow", spell_slow }, { "spell_stone_skin", spell_stone_skin }, { "spell_summon", spell_summon }, { "spell_teleport", spell_teleport }, { "spell_ventriloquate", spell_ventriloquate }, { "spell_weaken", spell_weaken }, { "spell_word_of_recall", spell_word_of_recall }, { "spell_acid_breath", spell_acid_breath }, { "spell_fire_breath", spell_fire_breath }, { "spell_frost_breath", spell_frost_breath }, { "spell_gas_breath", spell_gas_breath }, { "spell_lightning_breath", spell_lightning_breath }, { "spell_general_purpose", spell_general_purpose }, { "spell_high_explosive", spell_high_explosive }, { "spell_mana_transfer", spell_mana_transfer }, { "spell_transform", spell_transform }, { "spell_demon_summon", spell_demon_summon }, { "spell_scourge", spell_scourge }, { "spell_iceball", spell_iceball }, { "spell_manacles", spell_manacles }, { "spell_mental_knife", spell_mental_knife }, { "spell_guard_call", spell_guard_call }, { "spell_ghostdragon", spell_ghostdragon }, { "spell_eyes_of_intrigue", spell_eyes_of_intrigue }, { "spell_nightfall", spell_nightfall }, { "spell_confuse", spell_confuse }, { "spell_garble", spell_garble }, { "spell_terangreal", spell_terangreal }, { "spell_kassandra", spell_kassandra }, { "spell_matandra", spell_matandra }, { "spell_sebat", spell_sebat }, { "spell_amnesia", spell_amnesia }, { "spell_chaos_blade", spell_chaos_blade }, { "spell_tattoo", spell_tattoo }, { "spell_remove_tattoo", spell_remove_tattoo }, { "spell_wrath", spell_wrath }, { "spell_randomizer", spell_randomizer }, { "spell_tesseract", spell_tesseract }, { "spell_stalker", spell_stalker }, { "spell_brew", spell_brew }, { "spell_shadowlife", spell_shadowlife }, { "spell_ruler_badge", spell_ruler_badge }, { "spell_remove_badge", spell_remove_badge }, { "spell_dragon_strength", spell_dragon_strength }, { "spell_dragon_breath", spell_dragon_breath }, { "spell_golden_aura", spell_golden_aura }, { "spell_knightcape", spell_knightcape }, { "spell_robot", spell_robot }, { "spell_laserweapon", spell_laserweapon }, { "spell_entangle", spell_entangle }, { "spell_love_potion", spell_love_potion }, { "spell_deafen", spell_deafen }, { "spell_protective_shield", spell_protective_shield }, { "spell_disperse", spell_disperse }, { "spell_bark_skin", spell_bark_skin }, { "spell_acute_vision", spell_acute_vision }, { "spell_ranger_staff", spell_ranger_staff }, { "spell_hellfire", spell_hellfire }, { "spell_dragons_breath", spell_dragons_breath }, { "spell_sand_storm", spell_sand_storm }, { "spell_scream", spell_scream }, { "spell_attract_other", spell_attract_other }, { "spell_animate_dead", spell_animate_dead }, { "spell_enhanced_armor", spell_enhanced_armor }, { "spell_meld_into_stone", spell_meld_into_stone }, { "spell_find_object", spell_find_object }, { "spell_shielding", spell_shielding }, { "spell_web", spell_web }, { "spell_group_defense", spell_group_defense }, { "spell_inspire", spell_inspire }, { "spell_link", spell_link }, { "spell_mass_sanctuary", spell_mass_sanctuary }, { "spell_mend", spell_mend }, { "spell_wolf_call", spell_wolf_call }, { "spell_bear_call", spell_bear_call }, { "spell_lion_help", spell_lion_help }, { "spell_magic_jar", spell_magic_jar }, { "spell_turn", spell_turn }, { "spell_fear", spell_fear }, { "spell_protection_heat", spell_protection_heat }, { "spell_protection_cold", spell_protection_cold }, { "spell_fire_shield", spell_fire_shield }, { "spell_witch_curse", spell_witch_curse }, { "spell_knock", spell_knock }, { "spell_power_word_kill", spell_power_word_kill }, { "spell_magic_resistance", spell_magic_resistance }, { "spell_hallucination", spell_hallucination }, { "spell_vampiric_blast", spell_vampiric_blast }, { "spell_psionic_attack", spell_psionic_attack }, { "spell_psionic_defense", spell_psionic_defense }, { "spell_dragon_skin", spell_dragon_skin }, { "spell_mind_light", spell_mind_light }, { "spell_lightning_shield", spell_lightning_shield }, { "spell_shocking_trap", spell_shocking_trap }, { "spell_insanity", spell_insanity }, { "spell_power_stun", spell_power_stun }, { "spell_improved_detect", spell_improved_detect }, { "spell_improved_invis", spell_improved_invis }, { "spell_holy_armor", spell_holy_armor }, { "spell_bluefire", spell_bluefire }, { "spell_severity_force", spell_severity_force }, { "spell_bless_weapon", spell_bless_weapon }, { "spell_resilience", spell_resilience }, { "spell_superior_heal", spell_superior_heal }, { "spell_master_healing", spell_master_healing }, { "spell_group_heal", spell_group_heal }, { "spell_restoring_light", spell_restoring_light }, { "spell_acid_arrow", spell_acid_arrow }, { "spell_etheral_fist", spell_etheral_fist }, { "spell_spectral_furor", spell_spectral_furor }, { "spell_hand_of_undead", spell_hand_of_undead }, { "spell_disruption", spell_disruption }, { "spell_sonic_resonance", spell_sonic_resonance }, { "spell_mind_wrack", spell_mind_wrack }, { "spell_mind_wrench", spell_mind_wrench }, { "spell_sulfurus_spray", spell_sulfurus_spray }, { "spell_caustic_font", spell_caustic_font }, { "spell_acetum_primus", spell_acetum_primus }, { "spell_galvanic_whip", spell_galvanic_whip }, { "spell_magnetic_trust", spell_magnetic_trust }, { "spell_quantum_spike", spell_quantum_spike }, { "spell_astral_walk", spell_astral_walk }, { "spell_mist_walk", spell_mist_walk }, { "spell_solar_flight", spell_solar_flight }, { "spell_lesser_golem", spell_lesser_golem }, { "spell_stone_golem", spell_stone_golem }, { "spell_iron_golem", spell_iron_golem }, { "spell_adamantite_golem", spell_adamantite_golem }, { "spell_corruption", spell_corruption }, { "spell_hurricane", spell_hurricane }, { "spell_sanctify_lands", spell_sanctify_lands }, { "spell_deadly_venom", spell_deadly_venom }, { "spell_cursed_lands", spell_cursed_lands }, { "spell_lethargic_mist", spell_lethargic_mist }, { "spell_black_death", spell_black_death }, { "spell_mysterious_dream", spell_mysterious_dream }, { "spell_polymorph", spell_polymorph }, { "spell_blade_barrier", spell_blade_barrier }, { "spell_protection_negative", spell_protection_negative }, { "spell_ruler_aura", spell_ruler_aura }, { "spell_evil_spirit", spell_evil_spirit }, { "spell_disgrace", spell_disgrace }, { "spell_control_undead", spell_control_undead }, { "spell_assist", spell_assist }, { "spell_aid", spell_aid }, { "spell_summon_shadow", spell_summon_shadow }, { "spell_remove_fear", spell_remove_fear }, { "spell_desert_fist", spell_desert_fist }, { "spell_mirror", spell_mirror }, { "spell_mirror_image", spell_mirror_image }, { "spell_doppelganger", spell_doppelganger }, { "spell_detect_fade", spell_detect_fade }, { "spell_detect_trap", spell_detect_trap }, { "spell_shield_of_ruler", spell_shield_of_ruler }, { "spell_plasma_web", spell_plasma_web }, { "spell_holy_cross", spell_holy_cross }, { "spell_unholy_cross", spell_unholy_cross }, { "spell_bats_call", spell_bats_call }, { "spell_restore_mana", spell_restore_mana }, { "spell_field", spell_field }, { "spell_create_golem", spell_create_golem }, { "spell_spiritual_hammer", spell_spiritual_hammer }, { "spell_chaos_combat", spell_chaos_combat }, { "spell_send_stalker", spell_send_stalker }, { "spell_banshee_scream", spell_banshee_scream }, { "spell_sectoroid", spell_sectoroid }, { "spell_computer_breath", spell_computer_breath }, { "spell_control_cyborg", spell_control_cyborg }, { "spell_control_animal", spell_control_animal }, { "spell_plasma_flux", spell_plasma_flux }, { "spell_sensors", spell_sensors }, { "spell_cloaking_device", spell_cloaking_device }, { "spell_remove_device", spell_remove_device }, { "spell_energy_missiles", spell_energy_missiles }, { "spell_plasma_torpedoes", spell_plasma_torpedoes }, { "spell_vision", spell_vision }, { "spell_battery", spell_battery }, { "spell_cyber_bless", spell_cyber_bless }, { "spell_star_gate", spell_star_gate }, { "spell_stellar_converter", spell_stellar_converter }, { "spell_death_ray", spell_death_ray }, { "spell_research", spell_research }, { "spell_vortex", spell_vortex }, { "spell_mine", spell_mine }, { "spell_funpill", spell_funpill }, { "spell_magic_fear", spell_magic_fear }, { "spell_pray_of_death", spell_pray_of_death }, { "spell_pray_of_life", spell_pray_of_life }, { "spell_repair", spell_repair }, { "spell_light_repair", spell_light_repair }, { "spell_upgrade_room", spell_upgrade_room }, { "spell_death_wave", spell_death_wave }, { "spell_freedom", spell_freedom }, { "spell_detection", spell_detection }, { "spell_mind_control", spell_mind_control }, { "spell_mana_boom", spell_mana_boom }, { "spell_diamond_golem", spell_diamond_golem }, { "spell_clan_aura", spell_clan_aura }, { "spell_demon_skin", spell_demon_skin }, { "spell_emp_shockwave", spell_emp_shockwave }, { "spell_virtual_food", spell_virtual_food }, { "spell_psionic_storm", spell_psionic_storm }, { "spell_defensive_matrix", spell_defensive_matrix }, { "spell_archon", spell_archon }, { "spell_forest_giant", spell_forest_giant }, { "spell_insomnia", spell_insomnia }, { "spell_drain_blade", spell_drain_blade }, { "spell_shocking_blade", spell_shocking_blade }, { "spell_flame_blade", spell_flame_blade }, { "spell_frost_blade", spell_frost_blade }, { "spell_sharp_blade", spell_sharp_blade }, { "spell_vorpal_blade", spell_vorpal_blade }, { "spell_call_dragon", spell_call_dragon }, { "spell_call_fire_dragon", spell_call_fire_dragon }, { "spell_call_ice_dragon", spell_call_ice_dragon }, { "spell_call_lion", spell_call_lion }, { "spell_mass_visibility", spell_mass_visibility }, { "spell_dark_ritual", spell_dark_ritual }, { "spell_firestream", spell_firestream }, { "spell_frostbolt", spell_frostbolt }, { "spell_summon_earth_elm", spell_summon_earth_elm }, { "spell_summon_air_elm", spell_summon_air_elm }, { "spell_summon_water_elm", spell_summon_water_elm }, { "spell_summon_fire_elm", spell_summon_fire_elm }, { "spell_summon_light_elm", spell_summon_light_elm }, { "spell_fire_and_ice", spell_fire_and_ice }, { "spell_grounding", spell_grounding }, { "spell_tsunami", spell_tsunami }, { "spell_disenchant_armor", spell_disenchant_armor }, { "spell_disenchant_weapon", spell_disenchant_weapon }, { "spell_absorb", spell_absorb }, { "spell_animate_object", spell_animate_object }, { "spell_windwall", spell_windwall }, { "spell_earthfade", spell_earthfade }, { "spell_earthmaw", spell_earthmaw }, { "spell_drain", spell_drain }, { "spell_soften", spell_soften }, { "spell_fumble", spell_fumble }, { "spell_light_arrow", spell_light_arrow }, { "spell_hydroblast", spell_hydroblast }, { "spell_sword_of_justice", spell_sword_of_justice }, { "spell_guard_dogs", spell_guard_dogs }, { "spell_eyes_of_tiger", spell_eyes_of_tiger }, { "spell_lion_shield", spell_lion_shield }, { "spell_prevent", spell_prevent }, { "spell_chromatic_orb", spell_chromatic_orb }, { "spell_suffocate", spell_suffocate }, { "spell_soul_bind", spell_soul_bind }, { "spell_forcecage", spell_forcecage }, { "spell_iron_body", spell_iron_body }, { "spell_elemental_sphere", spell_elemental_sphere }, { "spell_aura_of_chaos", spell_aura_of_chaos }, { "spell_energy_stream", spell_energy_stream }, { "spell_swearing_stream", spell_swearing_stream }, { "spell_good_stream", spell_good_stream }, { "spell_contact", spell_contact }, { "spell_recall_pain", spell_recall_pain }, { "spell_recall_agony", spell_recall_agony }, { "spell_recall_death", spell_recall_death }, { "spell_forced_contact", spell_forced_contact }, { "spell_positive_luck", spell_positive_luck }, { "spell_negative_luck", spell_negative_luck }, { "spell_positive_morale", spell_positive_morale }, { "spell_negative_morale", spell_negative_morale }, { "spell_fire_wall", spell_fire_wall }, { "spell_inner_fire", spell_inner_fire }, { "spell_bamf", spell_bamf }, { "spell_eyed_sword", spell_eyed_sword }, { "spell_honor_shield", spell_honor_shield }, { "spell_mana_burn", spell_mana_burn }, { "spell_natures_blessing", spell_natures_blessing }, { "spell_tranquility", spell_tranquility }, { "spell_mark_tree", spell_mark_tree }, { "spell_tree_transport", spell_tree_transport }, { "spell_mind_terror", spell_mind_terror }, { "spell_block_vision", spell_block_vision }, { "spell_memento", spell_memento }, { "spell_mind_focusing", spell_mind_focusing }, { "spell_combat_mind", spell_combat_mind }, { "spell_ejection", spell_ejection }, { "spell_subjective_reality", spell_subjective_reality }, { "spell_endure", spell_endure }, { "spell_project_force", spell_project_force }, { "spell_hand_of_vengeance", spell_hand_of_vengeance }, { "spell_force_pull", spell_force_pull }, { "spell_force_push", spell_force_push }, { "spell_force_jump", spell_force_jump }, { "spell_force_speed", spell_force_speed }, { "spell_force_grip", spell_force_grip }, { "spell_force_lightning", spell_force_lightning }, { "spell_force_sense", spell_force_sense }, { "spell_flame_scorch", spell_flame_scorch }, { "spell_angel", spell_angel }, { "spell_devil", spell_devil }, { "spell_squire", spell_squire }, { "spell_mana_shield", spell_mana_shield }, { "spell_chaos_flare", spell_chaos_flare }, { "spell_wander", spell_wander }, { "spell_dark_armor", spell_dark_armor }, // tattoes { "tattoo_glowing_heart", tattoo_glowing_heart }, { "tattoo_winged_horse", tattoo_winged_horse }, { "tattoo_hammer_of_heaven", tattoo_hammer_of_heaven }, { "tattoo_laughing_skull", tattoo_laughing_skull }, { "tattoo_knight_in_full_armor", tattoo_knight_in_full_armor }, { "tattoo_nine_green_spiders", tattoo_nine_green_spiders }, { "tattoo_war_paint", tattoo_war_paint }, { "tattoo_fire_dragon", tattoo_fire_dragon }, { "tattoo_fire_drake", tattoo_fire_drake }, { "tattoo_ancient_dragon", tattoo_ancient_dragon }, { "tattoo_green_cross", tattoo_green_cross }, { "tattoo_ornate_green_cross", tattoo_ornate_green_cross }, { "tattoo_snowflake", tattoo_snowflake }, { "tattoo_blazing_sun", tattoo_blazing_sun }, { "tattoo_sandglass", tattoo_sandglass }, { "tattoo_violet_stars", tattoo_violet_stars }, { "tattoo_curved_dagger", tattoo_curved_dagger }, { "tattoo_octopus", tattoo_octopus }, { "tattoo_black_sun", tattoo_black_sun }, { "tattoo_queen_cobra", tattoo_queen_cobra }, { "tattoo_tower_shield", tattoo_tower_shield }, { "tattoo_yellow_bat", tattoo_yellow_bat }, { "tattoo_white_cloud", tattoo_white_cloud }, { "tattoo_tigers_snout", tattoo_tigers_snout }, // rituals { "ritual_dark_moon", ritual_dark_moon }, { "ritual_call_treant", ritual_call_treant }, { "ritual_circle_of_protection", ritual_circle_of_protection }, { "ritual_selfsacrifice", ritual_selfsacrifice }, { "ritual_eye_of_torrog", ritual_eye_of_torrog }, { "ritual_stone_curse", ritual_stone_curse }, { "ritual_call_to_naata", ritual_call_to_naata }, { "ritual_flame_of_torrog", ritual_flame_of_torrog }, { "ritual_fire_wind", ritual_fire_wind }, { "ritual_roots_and_branches", ritual_roots_and_branches }, { "ritual_forest_call", ritual_forest_call }, // other spells for shamans { "spell_burn_skin", spell_burn_skin }, { "spell_voodoo_doll", spell_voodoo_doll }, { NULL } };