From 9688ede57bcd87f51d94a2888f86da9fea37263a Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Mon, 23 Feb 2015 09:11:56 +0100 Subject: Remove now-unused object parameter from spellcasting functions --- src/cmd6.cc | 2 +- src/spell_type.cc | 20 ++-- src/spell_type.hpp | 16 ++-- src/spells3.cc | 266 ++++++++++++++++++++++++++--------------------------- src/spells3.hpp | 266 ++++++++++++++++++++++++++--------------------------- src/spells4.cc | 4 +- 6 files changed, 287 insertions(+), 287 deletions(-) diff --git a/src/cmd6.cc b/src/cmd6.cc index fd16f006..953bd7dd 100644 --- a/src/cmd6.cc +++ b/src/cmd6.cc @@ -3665,7 +3665,7 @@ static void activate_stick(s16b s, bool_ *obvious, bool_ *use_charge) assert(obvious != NULL); assert(use_charge != NULL); - ret = spell_type_produce_effect(spell, -1); + ret = spell_type_produce_effect(spell); switch (ret) { diff --git a/src/spell_type.cc b/src/spell_type.cc index a3e80669..9b5fba28 100644 --- a/src/spell_type.cc +++ b/src/spell_type.cc @@ -21,7 +21,7 @@ struct spell_type byte skill_level; /* Required level (to learn) */ std::vector m_description; /* List of strings */ - casting_result (*effect_func)(int o_idx); /* Spell effect function */ + casting_result (*effect_func)(); /* Spell effect function */ const char* (*info_func)(); /* Information function */ int (*lasting_func)(); /* Lasting effect function */ bool_ (*depend_func)(); /* Check dependencies */ @@ -97,7 +97,7 @@ void spell_type_set_inertia(spell_type *spell, s32b difficulty, s32b delay) void spell_type_init_music(spell_type *spell, s16b minimum_pval, const char* (*info_func)(), - casting_result (*effect_func)(int o_idx)) + casting_result (*effect_func)()) { assert(spell != NULL); @@ -117,7 +117,7 @@ void spell_type_init_music(spell_type *spell, void spell_type_init_music_lasting(spell_type *spell, s16b minimum_pval, const char* (*info_func)(), - casting_result (*effect_func)(int o_idx), + casting_result (*effect_func)(), int (*lasting_func)()) { spell_type_init_music( @@ -133,7 +133,7 @@ void spell_type_init_mage(spell_type *spell, random_type random_type, s32b school_idx, const char* (*info_func)(), - casting_result (*effect_func)(int o_idx)) + casting_result (*effect_func)()) { assert(spell != NULL); @@ -163,7 +163,7 @@ void spell_type_init_mage(spell_type *spell, void spell_type_init_priest(spell_type *spell, s32b school_idx, const char* (*info_func)(), - casting_result (*effect_func)(int o_idx)) + casting_result (*effect_func)()) { assert(spell != NULL); @@ -179,7 +179,7 @@ void spell_type_init_priest(spell_type *spell, void spell_type_init_device(spell_type *spell, const char* (*info_func)(), - casting_result (*effect_func)(int o_idx)) + casting_result (*effect_func)()) { assert(spell != NULL); @@ -192,7 +192,7 @@ void spell_type_init_device(spell_type *spell, void spell_type_init_demonology(spell_type *spell, const char* (*info_func)(), - casting_result (*effect_func)(int o_idx)) + casting_result (*effect_func)()) { spell_type_init_mage(spell, NO_RANDOM, @@ -203,7 +203,7 @@ void spell_type_init_demonology(spell_type *spell, void spell_type_init_geomancy(spell_type *spell, const char* (*info_func)(), - casting_result (*effect_func)(int o_idx), + casting_result (*effect_func)(), bool_ (*depend_func)()) { spell_type_init_mage(spell, @@ -283,10 +283,10 @@ int spell_type_produce_effect_lasting(spell_type *spell) return spell->lasting_func(); } -casting_result spell_type_produce_effect(spell_type *spell, int o_idx) +casting_result spell_type_produce_effect(spell_type *spell) { assert(spell->effect_func != NULL); - return spell->effect_func(o_idx); + return spell->effect_func(); } cptr spell_type_name(spell_type *spell) diff --git a/src/spell_type.hpp b/src/spell_type.hpp index 76e508a0..ac710341 100644 --- a/src/spell_type.hpp +++ b/src/spell_type.hpp @@ -25,30 +25,30 @@ enum random_type { RANDOM, NO_RANDOM }; void spell_type_init_music(spell_type *spell, s16b minimum_pval, const char* (*info_func)(), - casting_result (*effect_func)(int o_idx)); + casting_result (*effect_func)()); void spell_type_init_music_lasting(spell_type *spell, s16b minimum_pval, const char* (*info_func)(), - casting_result (*effect_func)(int o_idx), + casting_result (*effect_func)(), int (*lasting_func)()); void spell_type_init_mage(spell_type *spell, random_type random_type, s32b school_idx, const char* (*info_func)(), - casting_result (*effect_func)(int o_idx)); + casting_result (*effect_func)()); void spell_type_init_priest(spell_type *spell, s32b school_idx, const char* (*info_func)(), - casting_result (*effect_func)(int o_idx)); + casting_result (*effect_func)()); void spell_type_init_device(spell_type *spell, const char* (*info_func)(), - casting_result (*effect_func)(int o_idx)); + casting_result (*effect_func)()); void spell_type_init_demonology(spell_type *spell, const char* (*info_func)(), - casting_result (*effect_func)(int o_idx)); + casting_result (*effect_func)()); void spell_type_init_geomancy(spell_type *spell, const char* (*info_func)(), - casting_result (*effect_func)(int o_idx), + casting_result (*effect_func)(), bool_ (*depend_func)()); void spell_type_set_inertia(spell_type *spell, s32b difficulty, s32b delay); @@ -66,7 +66,7 @@ void spell_type_add_device_allocation(spell_type *spell, device_allocation *a); spell_type *spell_type_new(cptr name); int spell_type_produce_effect_lasting(spell_type *spell); -casting_result spell_type_produce_effect(spell_type *spell, int o_idx); +casting_result spell_type_produce_effect(spell_type *spell); cptr spell_type_name(spell_type *spell); int spell_type_skill_level(spell_type *spell); long spell_type_roll_charges(spell_type *spell); diff --git a/src/spells3.cc b/src/spells3.cc index f6414df5..4cabf892 100644 --- a/src/spells3.cc +++ b/src/spells3.cc @@ -207,7 +207,7 @@ static casting_result cplus(casting_result old, bool_ effect) } } -casting_result air_noxious_cloud(int item) +casting_result air_noxious_cloud() { int dir, type; @@ -239,7 +239,7 @@ const char *air_noxious_cloud_info() return buf; } -casting_result air_wings_of_winds(int item) +casting_result air_wings_of_winds() { if (get_level_s(AIRWINGS, 50) >= 16) { @@ -266,7 +266,7 @@ const char *air_wings_of_winds_info() return buf; } -casting_result air_invisibility(int item) +casting_result air_invisibility() { if (p_ptr->tim_invisible == 0) { @@ -285,7 +285,7 @@ const char *air_invisibility_info() return buf; } -casting_result air_poison_blood(int item) +casting_result air_poison_blood() { casting_result result = NO_CAST; @@ -312,7 +312,7 @@ const char *air_poison_blood_info() return buf; } -casting_result air_thunderstorm(int item) +casting_result air_thunderstorm() { if (p_ptr->tim_thunder == 0) { @@ -333,7 +333,7 @@ const char *air_thunderstorm_info() return buf; } -casting_result air_sterilize(int item) +casting_result air_sterilize() { set_no_breeders((30) + 20 + get_level_s(STERILIZE, 70)); return CAST_OBVIOUS; @@ -348,7 +348,7 @@ const char *air_sterilize_info() return buf; } -casting_result convey_blink(int item) +casting_result convey_blink() { if (get_level_s(BLINK, 50) >= 30) { @@ -375,7 +375,7 @@ const char *convey_blink_info() return buf; } -casting_result convey_disarm(int item) +casting_result convey_disarm() { casting_result result = NO_CAST; @@ -388,7 +388,7 @@ casting_result convey_disarm(int item) return result; } -casting_result convey_teleport(int item) +casting_result convey_teleport() { p_ptr->energy -= (25 - get_level_s(TELEPORT, 50)); teleport_player(100 + get_level_s(TELEPORT, 100)); @@ -404,7 +404,7 @@ const char *convey_teleport_info() return buf; } -casting_result convey_teleport_away(int item) +casting_result convey_teleport_away() { if (get_level_s(TELEAWAY, 50) >= 20) { @@ -451,7 +451,7 @@ static int recall_get_f() return f; } -casting_result convey_recall(int item) +casting_result convey_recall() { int x,y; cave_type *c_ptr; @@ -511,7 +511,7 @@ const char *convey_recall_info() return buf; } -casting_result convey_probability_travel(int item) +casting_result convey_probability_travel() { return cast(set_prob_travel(randint(20) + get_level_s(PROBABILITY_TRAVEL, 60))); } @@ -525,7 +525,7 @@ const char *convey_probability_travel_info() return buf; } -casting_result demonology_demon_blade(int item) +casting_result demonology_demon_blade() { int rad, type; @@ -558,7 +558,7 @@ const char *demonology_demon_blade_info() return buf; } -casting_result demonology_demon_madness(int item) +casting_result demonology_demon_madness() { casting_result result = NO_CAST; int dir, type, y1, x1, y2, x2; @@ -625,7 +625,7 @@ const char *demonology_demon_madness_info() return buf; } -casting_result demonology_demon_field(int item) +casting_result demonology_demon_field() { int dir; @@ -651,7 +651,7 @@ const char *demonology_demon_field_info() return buf; } -casting_result demonology_doom_shield(int item) +casting_result demonology_doom_shield() { return cast(set_shield(randint(10) + 20 + get_level_s(DOOM_SHIELD, 100), -300 + get_level_s(DOOM_SHIELD, 100), @@ -671,7 +671,7 @@ const char *demonology_doom_shield_info() return buf; } -casting_result demonology_unholy_word(int item) +casting_result demonology_unholy_word() { int x, y; cave_type *c_ptr = NULL; @@ -737,7 +737,7 @@ const char *demonology_unholy_word_info() return buf; } -casting_result demonology_demon_cloak(int item) +casting_result demonology_demon_cloak() { return cast(set_tim_reflect(randint(5) + 5 + get_level(DEMON_CLOAK, 15, 0))); } @@ -751,7 +751,7 @@ const char *demonology_demon_cloak_info() return buf; } -casting_result demonology_summon_demon(int item) +casting_result demonology_summon_demon() { int type, level, minlevel; @@ -791,7 +791,7 @@ const char *demonology_summon_demon_info() return buf; } -casting_result demonology_discharge_minion(int item) +casting_result demonology_discharge_minion() { cave_type *c_ptr; int x, y; @@ -843,7 +843,7 @@ const char *demonology_discharge_minion_info() return buf; } -casting_result demonology_control_demon(int item) +casting_result demonology_control_demon() { int dir; if (!get_aim_dir(&dir)) @@ -863,7 +863,7 @@ const char *demonology_control_demon_info() return buf; } -casting_result divination_greater_identify(int item) +casting_result divination_greater_identify() { if (get_check("Cast on yourself?")) { @@ -876,7 +876,7 @@ casting_result divination_greater_identify(int item) return CAST_OBVIOUS; } -casting_result divination_identify(int item) +casting_result divination_identify() { if (get_level_s(IDENTIFY, 50) >= 27) { @@ -917,7 +917,7 @@ const char *divination_identify_info() } } -casting_result divination_vision(int item) +casting_result divination_vision() { if (get_level_s(VISION, 50) >= 25) { @@ -931,7 +931,7 @@ casting_result divination_vision(int item) } -casting_result divination_sense_hidden(int item) +casting_result divination_sense_hidden() { casting_result result = NO_CAST; @@ -965,7 +965,7 @@ const char *divination_sense_hidden_info() return buf; } -casting_result divination_reveal_ways(int item) +casting_result divination_reveal_ways() { casting_result result = NO_CAST; result = cplus(result, detect_doors(10 + get_level(REVEALWAYS, 40, 0))); @@ -982,7 +982,7 @@ const char *divination_reveal_ways_info() return buf; } -casting_result divination_sense_monsters(int item) +casting_result divination_sense_monsters() { casting_result result = NO_CAST; @@ -1015,7 +1015,7 @@ const char *divination_sense_monsters_info() return buf; } -casting_result earth_stone_skin(int item) +casting_result earth_stone_skin() { int type; @@ -1056,7 +1056,7 @@ const char *earth_stone_skin_info() return buf; } -casting_result earth_dig(int item) +casting_result earth_dig() { int dir; if (!get_aim_dir(&dir)) @@ -1067,7 +1067,7 @@ casting_result earth_dig(int item) return cast(wall_to_mud(dir)); } -casting_result earth_stone_prison(int item) +casting_result earth_stone_prison() { int x,y; @@ -1088,7 +1088,7 @@ casting_result earth_stone_prison(int item) return CAST_OBVIOUS; } -casting_result earth_strike(int item) +casting_result earth_strike() { int dir, dmg; @@ -1125,7 +1125,7 @@ const char *earth_strike_info() return buf; } -casting_result earth_shake(int item) +casting_result earth_shake() { int x,y; @@ -1152,7 +1152,7 @@ const char *earth_shake_info() return buf; } -casting_result eru_see_the_music(int item) +casting_result eru_see_the_music() { casting_result result = NO_CAST; @@ -1186,7 +1186,7 @@ const char *eru_see_the_music_info() return buf; } -casting_result eru_listen_to_the_music(int item) +casting_result eru_listen_to_the_music() { casting_result result = NO_CAST; @@ -1207,7 +1207,7 @@ casting_result eru_listen_to_the_music(int item) return result; } -casting_result eru_know_the_music(int item) +casting_result eru_know_the_music() { if (get_level_s(ERU_UNDERSTAND, 50) >= 10) { @@ -1220,7 +1220,7 @@ casting_result eru_know_the_music(int item) } } -casting_result eru_lay_of_protection(int item) +casting_result eru_lay_of_protection() { return cast(fire_ball(GF_MAKE_GLYPH, 0, 1, 1 + get_level(ERU_PROT, 2, 0))); } @@ -1234,7 +1234,7 @@ const char *eru_lay_of_protection_info() return buf; } -casting_result fire_globe_of_light(int item) +casting_result fire_globe_of_light() { casting_result result = NO_CAST; @@ -1279,7 +1279,7 @@ const char *fire_globe_of_light_info() return buf; } -casting_result fire_fireflash(int item) +casting_result fire_fireflash() { int dir; int type = GF_FIRE; @@ -1309,7 +1309,7 @@ const char *fire_fireflash_info() return buf; } -casting_result fire_fiery_shield(int item) +casting_result fire_fiery_shield() { int type = SHIELD_FIRE; if (get_level_s(FIERYAURA, 50) >= 8) @@ -1335,7 +1335,7 @@ const char *fire_fiery_shield_info() return buf; } -casting_result fire_firewall(int item) +casting_result fire_firewall() { int dir; int type = GF_FIRE; @@ -1372,7 +1372,7 @@ bool_ item_tester_hook_fire_golem(object_type *o_ptr) (o_ptr->sval == SV_LITE_LANTERN))); } -casting_result fire_golem(int ignored) +casting_result fire_golem() { int item, x, y, m_idx; @@ -1421,7 +1421,7 @@ const char *fire_golem_info() return buf; } -casting_result geomancy_call_the_elements(int item) +casting_result geomancy_call_the_elements() { int dir = 0; @@ -1450,7 +1450,7 @@ const char *geomancy_call_the_elements_info() return buf; } -casting_result geomancy_channel_elements(int item) +casting_result geomancy_channel_elements() { channel_the_elements(p_ptr->py, p_ptr->px, get_level_s(CHANNEL_ELEMENTS, 50)); return CAST_OBVIOUS; @@ -1501,7 +1501,7 @@ static u32b dir_to_eff_flags(int dir) return 0; } -casting_result geomancy_elemental_wave(int item) +casting_result geomancy_elemental_wave() { int dir = 0, y = 0, x = 0; eff_type *eff_ptr = NULL; @@ -1561,7 +1561,7 @@ casting_result geomancy_elemental_wave(int item) } } -casting_result geomancy_vaporize(int item) +casting_result geomancy_vaporize() { eff_type *eff_ptr = NULL; eff_type t[] = { @@ -1622,7 +1622,7 @@ bool_ geomancy_vaporize_depends() return get_skill(SKILL_AIR) >= 4; } -casting_result geomancy_geolysis(int item) +casting_result geomancy_geolysis() { int dir = 0; @@ -1651,7 +1651,7 @@ bool_ geomancy_geolysis_depends() return get_skill(SKILL_EARTH) >= 7; } -casting_result geomancy_dripping_tread(int item) +casting_result geomancy_dripping_tread() { if (p_ptr->dripping_tread == 0) { @@ -1681,7 +1681,7 @@ bool_ geomancy_dripping_tread_depends() return get_skill(SKILL_WATER) >= 10; } -casting_result geomancy_grow_barrier(int item) +casting_result geomancy_grow_barrier() { int dir = 0; @@ -1732,7 +1732,7 @@ int geomancy_count_elements(cptr *elements) return i; } -casting_result geomancy_elemental_minion(int item) +casting_result geomancy_elemental_minion() { int dir = 0; int x = 0, y = 0; @@ -1842,7 +1842,7 @@ static void get_manathrust_dam(s16b *num, s16b *sides) *sides = 1 + get_level_s(MANATHRUST, 20); } -casting_result mana_manathrust(int item) +casting_result mana_manathrust() { int dir; s16b num = 0; @@ -1871,7 +1871,7 @@ const char *mana_manathrust_info() return buf; } -casting_result mana_remove_curses(int item) +casting_result mana_remove_curses() { casting_result result = NO_CAST; @@ -1892,7 +1892,7 @@ casting_result mana_remove_curses(int item) return result; } -casting_result mana_elemental_shield(int item) +casting_result mana_elemental_shield() { casting_result res = NO_CAST; @@ -1928,7 +1928,7 @@ const char *mana_elemental_shield_info() return buf; } -casting_result mana_disruption_shield(int item) +casting_result mana_disruption_shield() { if (get_level_s(MANASHIELD, 50) >= 5) { @@ -1954,7 +1954,7 @@ const char *mana_disruption_shield_info() return buf; } -casting_result manwe_wind_shield(int item) +casting_result manwe_wind_shield() { casting_result res = NO_CAST; s32b dur = get_level_s(MANWE_SHIELD, 50) + 10 + randint(20); @@ -2007,7 +2007,7 @@ const char *manwe_wind_shield_info() return buf; } -casting_result manwe_avatar(int item) +casting_result manwe_avatar() { s16b mimic_idx = resolve_mimic_name("Maia"); assert(mimic_idx >= 0); @@ -2026,7 +2026,7 @@ const char *manwe_avatar_info() return buf; } -casting_result manwe_blessing(int item) +casting_result manwe_blessing() { casting_result res = NO_CAST; s32b dur = get_level_s(MANWE_BLESS, 70) + 30 + randint(40); @@ -2060,7 +2060,7 @@ const char *manwe_blessing_info() return buf; } -casting_result manwe_call(int item) +casting_result manwe_call() { int y = 0, x = 0, m_idx = -1, r_idx = -1; @@ -2179,7 +2179,7 @@ void do_melkor_curse(int m_idx) m_ptr->csleep = 0; } -casting_result melkor_curse(int item) +casting_result melkor_curse() { int dir = 0; @@ -2200,7 +2200,7 @@ casting_result melkor_curse(int item) } } -casting_result melkor_corpse_explosion(int item) +casting_result melkor_corpse_explosion() { return cast(fire_ball(GF_CORPSE_EXPL, 0, @@ -2217,7 +2217,7 @@ const char *melkor_corpse_explosion_info() return buf; } -casting_result melkor_mind_steal(int item) +casting_result melkor_mind_steal() { int dir = 0; @@ -2267,7 +2267,7 @@ const char *melkor_mind_steal_info() return buf; } -casting_result meta_recharge(int item) +casting_result meta_recharge() { return cast(recharge(60 + get_level_s(RECHARGE, 140))); } @@ -2291,7 +2291,7 @@ static int get_spellbinder_max() return i; } -casting_result meta_spellbinder(int item) +casting_result meta_spellbinder() { if (p_ptr->spellbinder_num != 0) { @@ -2394,7 +2394,7 @@ const char *meta_spellbinder_info() return buf; } -casting_result meta_disperse_magic(int item) +casting_result meta_disperse_magic() { casting_result res = NO_CAST; @@ -2430,7 +2430,7 @@ casting_result meta_disperse_magic(int item) return res; } -casting_result meta_tracker(int item) +casting_result meta_tracker() { if ((last_teleportation_y < 0) || (last_teleportation_x < 0)) @@ -2458,7 +2458,7 @@ void meta_inertia_control_hook_birth_objects() stop_inertia_controlled_spell(); } -casting_result meta_inertia_control(int item) +casting_result meta_inertia_control() { s32b s, difficulty, delay; spell_type *spell; @@ -2546,7 +2546,7 @@ static int mind_charm_power() return 10 + get_level_s(CHARM, 150); } -casting_result mind_charm(int item) +casting_result mind_charm() { int pwr = mind_charm_power(); int level = get_level_s(CHARM, 50); @@ -2588,7 +2588,7 @@ static int mind_confuse_power() return 10 + get_level_s(CONFUSE, 150); } -casting_result mind_confuse(int item) +casting_result mind_confuse() { int pwr = mind_confuse_power(); int level = get_level_s(CONFUSE, 50); @@ -2640,7 +2640,7 @@ static int mind_armor_of_fear_power_dice() return 5 + get_level_s(ARMOROFFEAR, 20); } -casting_result mind_armor_of_fear(int item) +casting_result mind_armor_of_fear() { return cast(set_shield(randint(10) + mind_armor_of_fear_base_duration(), 10, @@ -2665,7 +2665,7 @@ static int mind_stun_power() return 10 + get_level_s(STUN, 150); } -casting_result mind_stun(int item) +casting_result mind_stun() { int dir; @@ -2693,7 +2693,7 @@ const char *mind_stun_info() return buf; } -casting_result tempo_magelock(int item) +casting_result tempo_magelock() { if (get_level_s(MAGELOCK, 50) >= 30) { @@ -2738,7 +2738,7 @@ static s32b tempo_slow_monster_power() return 40 + get_level_s(SLOWMONSTER, 160); } -casting_result tempo_slow_monster(int item) +casting_result tempo_slow_monster() { int dir; s32b pwr; @@ -2785,7 +2785,7 @@ static s32b tempo_essence_of_speed_bonus() return 5 + get_level_s(ESSENCESPEED, 20); } -casting_result tempo_essence_of_speed(int item) +casting_result tempo_essence_of_speed() { if (p_ptr->fast == 0) { @@ -2810,7 +2810,7 @@ static s32b tempo_banishment_power() return 40 + get_level_s(BANISHMENT, 160); } -casting_result tempo_banishment(int item) +casting_result tempo_banishment() { casting_result result = NO_CAST; s32b pwr = tempo_banishment_power(); @@ -2835,7 +2835,7 @@ const char *tempo_banishment_info() return buf; } -casting_result tulkas_divine_aim(int item) +casting_result tulkas_divine_aim() { casting_result result = NO_CAST; s32b dur = get_level_s(TULKAS_AIM, 50) + randint(10); @@ -2858,7 +2858,7 @@ const char *tulkas_divine_aim_info() return buf; } -casting_result tulkas_wave_of_power(int item) +casting_result tulkas_wave_of_power() { int dir; @@ -2879,7 +2879,7 @@ const char *tulkas_wave_of_power_info() return buf; } -casting_result tulkas_whirlwind(int item) +casting_result tulkas_whirlwind() { return cast(fire_ball(GF_ATTACK, 0, 1, 1)); } @@ -2944,7 +2944,7 @@ static bool_ udun_object_is_drainable(object_type *o_ptr) (o_ptr->tval == TV_STAFF)); } -casting_result udun_drain(int ignored) +casting_result udun_drain() { int item; object_type *o_ptr = NULL; @@ -3001,7 +3001,7 @@ casting_result udun_drain(int ignored) return CAST_OBVIOUS; } -casting_result udun_genocide(int item) +casting_result udun_genocide() { if (get_level_s(GENOCIDE, 50) < 10) { @@ -3027,7 +3027,7 @@ static int udun_wraithform_base_duration() return 20 + get_level_s(WRAITHFORM, 40); } -casting_result udun_wraithform(int item) +casting_result udun_wraithform() { return cast(set_shadow(randint(30) + udun_wraithform_base_duration())); } @@ -3046,7 +3046,7 @@ static int udun_flame_of_udun_base_duration() return 5 + get_level_s(FLAMEOFUDUN, 30); } -casting_result udun_flame_of_udun(int item) +casting_result udun_flame_of_udun() { return cast(set_mimic(randint(15) + udun_flame_of_udun_base_duration(), resolve_mimic_name("Balrog"), @@ -3072,7 +3072,7 @@ static int tidal_wave_duration() return 6 + get_level_s(TIDALWAVE, 10); } -casting_result water_tidal_wave(int item) +casting_result water_tidal_wave() { fire_wave(GF_WAVE, 0, @@ -3108,7 +3108,7 @@ static int water_ice_storm_duration() return 20 + get_level_s(ICESTORM, 70); } -casting_result water_ice_storm(int item) +casting_result water_ice_storm() { int type = GF_COLD; @@ -3143,7 +3143,7 @@ static int water_ent_potion_base_duration() return 25 + get_level_s(ENTPOTION, 40);; } -casting_result water_ent_potion(int item) +casting_result water_ent_potion() { set_food(PY_FOOD_MAX - 1); msg_print("The Ent's Potion fills your stomach."); @@ -3191,7 +3191,7 @@ static int water_vapor_duration() return 5; } -casting_result water_vapor(int item) +casting_result water_vapor() { fire_cloud(GF_WATER, 0, @@ -3221,7 +3221,7 @@ static void get_geyser_damage(int *dice, int *sides) *sides = 3 + get_level_s(GEYSER, 35); } -casting_result water_geyser(int item) +casting_result water_geyser() { int dir, dice, sides; @@ -3261,7 +3261,7 @@ static int charm_animal_radius() return get_level_s(YAVANNA_CHARM_ANIMAL, 2); } -casting_result yavanna_charm_animal(int item) +casting_result yavanna_charm_animal() { int dir; @@ -3291,7 +3291,7 @@ static int yavanna_grow_grass_radius() return get_level_s(YAVANNA_GROW_GRASS, 4); } -casting_result yavanna_grow_grass(int item) +casting_result yavanna_grow_grass() { grow_grass(yavanna_grow_grass_radius()); return CAST_OBVIOUS; @@ -3321,7 +3321,7 @@ static int tree_roots_damage() return 10 + get_level_s(YAVANNA_TREE_ROOTS, 20); } -casting_result yavanna_tree_roots(int item) +casting_result yavanna_tree_roots() { return cast(set_roots(tree_roots_duration(), tree_roots_ac(), @@ -3349,7 +3349,7 @@ static int water_bite_damage() return 10 + get_level_s(YAVANNA_WATER_BITE, 50); } -casting_result yavanna_water_bite(int item) +casting_result yavanna_water_bite() { int rad = 0; @@ -3380,7 +3380,7 @@ static int uproot_mlevel() return 30 + get_level_s(YAVANNA_UPROOT, 70); } -casting_result yavanna_uproot(int item) +casting_result yavanna_uproot() { int dir, x, y; cave_type *c_ptr; @@ -3438,7 +3438,7 @@ static int nature_grow_trees_radius() return 2 + get_level_s(GROWTREE, 7); } -casting_result nature_grow_trees(int item) +casting_result nature_grow_trees() { grow_trees(nature_grow_trees_radius()); return CAST_OBVIOUS; @@ -3463,7 +3463,7 @@ static int nature_healing_hp() return p_ptr->mhp * nature_healing_percentage() / 100; } -casting_result nature_healing(int item) +casting_result nature_healing() { return cast(hp_player(nature_healing_hp())); } @@ -3478,7 +3478,7 @@ const char *nature_healing_info() return buf; } -casting_result nature_recovery(int item) +casting_result nature_recovery() { casting_result result = NO_CAST; @@ -3515,7 +3515,7 @@ static int regeneration_power() return 300 + get_level_s(REGENERATION, 700); } -casting_result nature_regeneration(int item) +casting_result nature_regeneration() { if (p_ptr->tim_regen == 0) { @@ -3540,7 +3540,7 @@ static int summon_animal_level() return 25 + get_level_s(SUMMONANNIMAL, 50); } -casting_result nature_summon_animal(int item) +casting_result nature_summon_animal() { summon_specific_level = summon_animal_level(); return cast(summon_specific_friendly(p_ptr->py, @@ -3559,7 +3559,7 @@ const char *nature_summon_animal_info() return buf; } -casting_result nature_grow_athelas(int item) +casting_result nature_grow_athelas() { if (p_ptr->black_breath) { @@ -3576,7 +3576,7 @@ static int device_heal_monster_hp() return 20 + get_level_s(DEVICE_HEAL_MONSTER, 380); } -casting_result device_heal_monster(int item) +casting_result device_heal_monster() { int dir; @@ -3597,7 +3597,7 @@ const char *device_heal_monster_info() return buf; } -casting_result device_haste_monster(int item) +casting_result device_haste_monster() { int dir; @@ -3614,13 +3614,13 @@ const char *device_haste_monster_info() return "speed +10"; } -casting_result device_wish(int item) +casting_result device_wish() { make_wish(); return CAST_OBVIOUS; } -casting_result device_summon_monster(int item) +casting_result device_summon_monster() { casting_result result = NO_CAST; int i; @@ -3638,7 +3638,7 @@ static int device_mana_pct() return 20 + get_level_s(DEVICE_MANA, 50); } -casting_result device_mana(int item) +casting_result device_mana() { increase_mana((p_ptr->msp * device_mana_pct()) / 100); return CAST_OBVIOUS; @@ -3653,7 +3653,7 @@ const char *device_mana_info() return buf; } -casting_result device_nothing(int item) +casting_result device_nothing() { return CAST_HIDDEN; } @@ -3663,7 +3663,7 @@ static int holy_fire_damage() return 50 + get_level_s(DEVICE_HOLY_FIRE, 300); } -casting_result device_holy_fire(int item) +casting_result device_holy_fire() { return cast(project_hack(GF_HOLY_FIRE, holy_fire_damage())); } @@ -3677,7 +3677,7 @@ const char *device_holy_fire_info() return buf; } -casting_result device_thunderlords(int item) +casting_result device_thunderlords() { switch (game_module_idx) { @@ -3720,7 +3720,7 @@ void static start_lasting_spell(int spl) p_ptr->music_extra = -spl; } -casting_result music_stop_singing_spell(int item) +casting_result music_stop_singing_spell() { start_lasting_spell(0); return CAST_OBVIOUS; @@ -3737,7 +3737,7 @@ int music_holding_pattern_lasting() return get_mana(MUSIC_HOLD); } -casting_result music_holding_pattern_spell(int item) +casting_result music_holding_pattern_spell() { start_lasting_spell(MUSIC_HOLD); return CAST_OBVIOUS; @@ -3763,7 +3763,7 @@ int music_illusion_pattern_lasting() return get_mana(MUSIC_CONF); } -casting_result music_illusion_pattern_spell(int item) +casting_result music_illusion_pattern_spell() { start_lasting_spell(MUSIC_CONF); return CAST_OBVIOUS; @@ -3789,7 +3789,7 @@ int music_stun_pattern_lasting() return get_mana(MUSIC_STUN); } -casting_result music_stun_pattern_spell(int item) +casting_result music_stun_pattern_spell() { start_lasting_spell(MUSIC_STUN); return CAST_OBVIOUS; @@ -3810,7 +3810,7 @@ int music_song_of_the_sun_lasting() return 1; } -casting_result music_song_of_the_sun_spell(int item) +casting_result music_song_of_the_sun_spell() { start_lasting_spell(MUSIC_LITE); return CAST_OBVIOUS; @@ -3827,7 +3827,7 @@ int music_flow_of_life_lasting() return get_mana(MUSIC_HEAL); } -casting_result music_flow_of_life_spell(int item) +casting_result music_flow_of_life_spell() { start_lasting_spell(MUSIC_HEAL); return CAST_OBVIOUS; @@ -3860,7 +3860,7 @@ int music_heroic_ballad_lasting() return get_mana(MUSIC_HERO); } -casting_result music_heroic_ballad_spell(int item) +casting_result music_heroic_ballad_spell() { start_lasting_spell(MUSIC_HERO); return CAST_OBVIOUS; @@ -3876,7 +3876,7 @@ int music_hobbit_melodies_lasting() return get_mana(MUSIC_TIME); } -casting_result music_hobbit_melodies_spell(int item) +casting_result music_hobbit_melodies_spell() { start_lasting_spell(MUSIC_TIME); return CAST_OBVIOUS; @@ -3909,7 +3909,7 @@ int music_clairaudience_lasting() return get_mana(MUSIC_MIND); } -casting_result music_clairaudience_spell(int item) +casting_result music_clairaudience_spell() { start_lasting_spell(MUSIC_MIND); return CAST_OBVIOUS; @@ -3931,7 +3931,7 @@ const char *music_clairaudience_info() } } -casting_result music_blow_spell(int item) +casting_result music_blow_spell() { fire_ball(GF_SOUND, 0, @@ -3951,7 +3951,7 @@ const char *music_blow_info() return buf; } -casting_result music_gush_of_wind_spell(int item) +casting_result music_gush_of_wind_spell() { fire_ball(GF_AWAY_ALL, 0, @@ -3970,7 +3970,7 @@ const char *music_gush_of_wind_info() return buf; } -casting_result music_horns_of_ylmir_spell(int item) +casting_result music_horns_of_ylmir_spell() { earthquake(p_ptr->py, p_ptr->px, 2 + get_level_s(MUSIC_YLMIR, 10)); return CAST_OBVIOUS; @@ -3985,13 +3985,13 @@ const char *music_horns_of_ylmir_info() return buf; } -casting_result music_ambarkanta_spell(int item) +casting_result music_ambarkanta_spell() { alter_reality(); return CAST_OBVIOUS; } -casting_result aule_firebrand_spell(int item) +casting_result aule_firebrand_spell() { int rad = 0; int type = GF_FIRE; @@ -4048,7 +4048,7 @@ static bool_ aule_enchant_weapon_item_tester(object_type *o_ptr) } } -casting_result aule_enchant_weapon_spell(int ignored) +casting_result aule_enchant_weapon_spell() { s32b level = get_level_s(AULE_ENCHANT_WEAPON, 50); s16b num_h, num_d, num_p; @@ -4120,7 +4120,7 @@ bool_ aule_enchant_armor_item_tester(object_type *o_ptr) } } -casting_result aule_enchant_armour_spell(int ignored) +casting_result aule_enchant_armour_spell() { s32b level = get_level_s(AULE_ENCHANT_ARMOUR, 50); s16b num_h, num_d, num_a, num_p; @@ -4169,7 +4169,7 @@ const char *aule_enchant_armour_info() return buf; } -casting_result aule_child_spell(int item) +casting_result aule_child_spell() { int y, x; s16b m_idx; @@ -4203,7 +4203,7 @@ static int tears_of_luthien_hp() return 10 * get_level_s(MANDOS_TEARS_LUTHIEN, 30); } -casting_result mandos_tears_of_luthien_spell(int item) +casting_result mandos_tears_of_luthien_spell() { casting_result result = NO_CAST; @@ -4224,7 +4224,7 @@ const char *mandos_tears_of_luthien_info() return buf; } -casting_result mandos_spirit_of_the_feanturi_spell(int item) +casting_result mandos_spirit_of_the_feanturi_spell() { casting_result result = NO_CAST; s32b level = get_level_s(MANDOS_SPIRIT_FEANTURI, 50); @@ -4267,7 +4267,7 @@ static int tale_of_doom_duration() return 5 + get_level_s(MANDOS_TALE_DOOM,10); } -casting_result mandos_tale_of_doom_spell(int item) +casting_result mandos_tale_of_doom_spell() { return cast(set_tim_precognition(tale_of_doom_duration())); } @@ -4286,7 +4286,7 @@ int call_to_the_halls_mlev() return 20 + get_level(MANDOS_CALL_HALLS, 70, 0); } -casting_result mandos_call_to_the_halls_spell(int item) +casting_result mandos_call_to_the_halls_spell() { int y, x; s16b m_idx; @@ -4323,7 +4323,7 @@ static void get_belegaer_damage(int *dice, int *sides) *sides = 3 + get_level_s(ULMO_BELEGAER, 35); } -casting_result ulmo_song_of_belegaer_spell(int item) +casting_result ulmo_song_of_belegaer_spell() { int dir, dice, sides; @@ -4357,7 +4357,7 @@ int draught_of_ulmonan_hp() return 5 * get_level_s(ULMO_DRAUGHT_ULMONAN, 50); } -casting_result ulmo_draught_of_ulmonan_spell(int item) +casting_result ulmo_draught_of_ulmonan_spell() { casting_result result = NO_CAST; s32b level = get_level_s(ULMO_DRAUGHT_ULMONAN, 50); @@ -4399,7 +4399,7 @@ static int call_of_the_ulumuri_mlev() return 30 + get_level(ULMO_CALL_ULUMURI, 70, 0); } -casting_result ulmo_call_of_the_ulumuri_spell(int item) +casting_result ulmo_call_of_the_ulumuri_spell() { int x,y; s16b m_idx; @@ -4442,7 +4442,7 @@ static int wrath_of_ulmo_duration() return 10 + get_level_s(ULMO_WRATH, 14); } -casting_result ulmo_wrath_of_ulmo_spell(int item) +casting_result ulmo_wrath_of_ulmo_spell() { int dir, type = GF_WATER; @@ -4483,7 +4483,7 @@ static int light_of_valinor_radius() return 5 + get_level_s(VARDA_LIGHT_VALINOR, 6); } -casting_result varda_light_of_valinor_spell(int item) +casting_result varda_light_of_valinor_spell() { casting_result result = NO_CAST; @@ -4526,7 +4526,7 @@ const char *varda_light_of_valinor_info() } } -casting_result varda_call_of_almaren_spell(int item) +casting_result varda_call_of_almaren_spell() { int power = 5 * p_ptr->lev; if (get_level_s(VARDA_CALL_ALMAREN, 50) >= 20) @@ -4540,7 +4540,7 @@ casting_result varda_call_of_almaren_spell(int item) return CAST_OBVIOUS; } -casting_result varda_evenstar_spell(int item) +casting_result varda_evenstar_spell() { wiz_lite_extra(); if (get_level_s(VARDA_EVENSTAR, 50) >= 40) @@ -4562,7 +4562,7 @@ static int star_kindler_damage() return 20 + get_level_s(VARDA_STARKINDLER, 100); } -casting_result varda_star_kindler_spell(int item) +casting_result varda_star_kindler_spell() { int dir, i, n = star_kindler_bursts(); diff --git a/src/spells3.hpp b/src/spells3.hpp index b9ad44e2..76951199 100644 --- a/src/spells3.hpp +++ b/src/spells3.hpp @@ -11,17 +11,17 @@ extern s32b POISONBLOOD; extern s32b THUNDERSTORM; extern s32b STERILIZE; -casting_result air_noxious_cloud(int); +casting_result air_noxious_cloud(); const char *air_noxious_cloud_info(); -casting_result air_wings_of_winds(int); +casting_result air_wings_of_winds(); const char *air_wings_of_winds_info(); -casting_result air_invisibility(int); +casting_result air_invisibility(); const char *air_invisibility_info(); -casting_result air_poison_blood(int); +casting_result air_poison_blood(); const char *air_poison_blood_info(); -casting_result air_thunderstorm(int); +casting_result air_thunderstorm(); const char *air_thunderstorm_info(); -casting_result air_sterilize(int); +casting_result air_sterilize(); const char *air_sterilize_info(); extern s32b BLINK; @@ -31,15 +31,15 @@ extern s32b TELEAWAY; extern s32b RECALL; extern s32b PROBABILITY_TRAVEL; -casting_result convey_blink(int); +casting_result convey_blink(); const char *convey_blink_info(); -casting_result convey_disarm(int); -casting_result convey_teleport(int); +casting_result convey_disarm(); +casting_result convey_teleport(); const char *convey_teleport_info(); -casting_result convey_teleport_away(int); -casting_result convey_recall(int); +casting_result convey_teleport_away(); +casting_result convey_recall(); const char *convey_recall_info(); -casting_result convey_probability_travel(int); +casting_result convey_probability_travel(); const char *convey_probability_travel_info(); extern s32b DEMON_BLADE; @@ -52,23 +52,23 @@ extern s32b DEMON_SUMMON; extern s32b DISCHARGE_MINION; extern s32b CONTROL_DEMON; -casting_result demonology_demon_blade(int); +casting_result demonology_demon_blade(); const char *demonology_demon_blade_info(); -casting_result demonology_demon_madness(int); +casting_result demonology_demon_madness(); const char *demonology_demon_madness_info(); -casting_result demonology_demon_field(int); +casting_result demonology_demon_field(); const char *demonology_demon_field_info(); -casting_result demonology_doom_shield(int); +casting_result demonology_doom_shield(); const char *demonology_doom_shield_info(); -casting_result demonology_unholy_word(int); +casting_result demonology_unholy_word(); const char *demonology_unholy_word_info(); -casting_result demonology_demon_cloak(int); +casting_result demonology_demon_cloak(); const char *demonology_demon_cloak_info(); -casting_result demonology_summon_demon(int); +casting_result demonology_summon_demon(); const char *demonology_summon_demon_info(); -casting_result demonology_discharge_minion(int); +casting_result demonology_discharge_minion(); const char *demonology_discharge_minion_info(); -casting_result demonology_control_demon(int); +casting_result demonology_control_demon(); const char *demonology_control_demon_info(); extern s32b STARIDENTIFY; @@ -78,15 +78,15 @@ extern s32b SENSEHIDDEN; extern s32b REVEALWAYS; extern s32b SENSEMONSTERS; -casting_result divination_greater_identify(int); -casting_result divination_identify(int); +casting_result divination_greater_identify(); +casting_result divination_identify(); const char *divination_identify_info(); -casting_result divination_vision(int); -casting_result divination_sense_hidden(int); +casting_result divination_vision(); +casting_result divination_sense_hidden(); const char *divination_sense_hidden_info(); -casting_result divination_reveal_ways(int); +casting_result divination_reveal_ways(); const char *divination_reveal_ways_info(); -casting_result divination_sense_monsters(int); +casting_result divination_sense_monsters(); const char *divination_sense_monsters_info(); extern s32b STONESKIN; @@ -95,13 +95,13 @@ extern s32b STONEPRISON; extern s32b STRIKE; extern s32b SHAKE; -casting_result earth_stone_skin(int); +casting_result earth_stone_skin(); const char *earth_stone_skin_info(); -casting_result earth_dig(int); -casting_result earth_stone_prison(int); -casting_result earth_strike(int); +casting_result earth_dig(); +casting_result earth_stone_prison(); +casting_result earth_strike(); const char *earth_strike_info(); -casting_result earth_shake(int); +casting_result earth_shake(); const char *earth_shake_info(); extern s32b ERU_SEE; @@ -109,11 +109,11 @@ extern s32b ERU_LISTEN; extern s32b ERU_UNDERSTAND; extern s32b ERU_PROT; -casting_result eru_see_the_music(int); +casting_result eru_see_the_music(); const char *eru_see_the_music_info(); -casting_result eru_listen_to_the_music(int); -casting_result eru_know_the_music(int); -casting_result eru_lay_of_protection(int); +casting_result eru_listen_to_the_music(); +casting_result eru_know_the_music(); +casting_result eru_lay_of_protection(); const char *eru_lay_of_protection_info(); extern s32b GLOBELIGHT; @@ -122,15 +122,15 @@ extern s32b FIERYAURA; extern s32b FIREWALL; extern s32b FIREGOLEM; -casting_result fire_globe_of_light(int); +casting_result fire_globe_of_light(); const char *fire_globe_of_light_info(); -casting_result fire_fireflash(int); +casting_result fire_fireflash(); const char *fire_fireflash_info(); -casting_result fire_fiery_shield(int); +casting_result fire_fiery_shield(); const char *fire_fiery_shield_info(); -casting_result fire_firewall(int); +casting_result fire_firewall(); const char *fire_firewall_info(); -casting_result fire_golem(int); +casting_result fire_golem(); const char *fire_golem_info(); extern s32b CALL_THE_ELEMENTS; @@ -142,22 +142,22 @@ extern s32b DRIPPING_TREAD; extern s32b GROW_BARRIER; extern s32b ELEMENTAL_MINION; -casting_result geomancy_call_the_elements(int); +casting_result geomancy_call_the_elements(); const char *geomancy_call_the_elements_info(); -casting_result geomancy_channel_elements(int); -casting_result geomancy_elemental_wave(int); -casting_result geomancy_vaporize(int); +casting_result geomancy_channel_elements(); +casting_result geomancy_elemental_wave(); +casting_result geomancy_vaporize(); const char *geomancy_vaporize_info(); bool_ geomancy_vaporize_depends(); -casting_result geomancy_geolysis(int); +casting_result geomancy_geolysis(); const char *geomancy_geolysis_info(); bool_ geomancy_geolysis_depends(); -casting_result geomancy_dripping_tread(int); +casting_result geomancy_dripping_tread(); const char *geomancy_dripping_tread_info(); bool_ geomancy_dripping_tread_depends(); -casting_result geomancy_grow_barrier(int); +casting_result geomancy_grow_barrier(); bool_ geomancy_grow_barrier_depends(); -casting_result geomancy_elemental_minion(int); +casting_result geomancy_elemental_minion(); const char *geomancy_elemental_minion_info(); extern s32b MANATHRUST; @@ -165,12 +165,12 @@ extern s32b DELCURSES; extern s32b RESISTS; extern s32b MANASHIELD; -casting_result mana_manathrust(int); +casting_result mana_manathrust(); const char *mana_manathrust_info(); -casting_result mana_remove_curses(int); -casting_result mana_elemental_shield(int); +casting_result mana_remove_curses(); +casting_result mana_elemental_shield(); const char *mana_elemental_shield_info(); -casting_result mana_disruption_shield(int); +casting_result mana_disruption_shield(); const char *mana_disruption_shield_info(); extern s32b MANWE_SHIELD; @@ -178,13 +178,13 @@ extern s32b MANWE_AVATAR; extern s32b MANWE_BLESS; extern s32b MANWE_CALL; -casting_result manwe_wind_shield(int); +casting_result manwe_wind_shield(); const char *manwe_wind_shield_info(); -casting_result manwe_avatar(int); +casting_result manwe_avatar(); const char *manwe_avatar_info(); -casting_result manwe_blessing(int); +casting_result manwe_blessing(); const char *manwe_blessing_info(); -casting_result manwe_call(int); +casting_result manwe_call(); const char *manwe_call_info(); extern s32b MELKOR_CURSE; @@ -193,10 +193,10 @@ extern s32b MELKOR_MIND_STEAL; void do_melkor_curse(int m_idx); -casting_result melkor_curse(int); -casting_result melkor_corpse_explosion(int); +casting_result melkor_curse(); +casting_result melkor_corpse_explosion(); const char *melkor_corpse_explosion_info(); -casting_result melkor_mind_steal(int); +casting_result melkor_mind_steal(); const char *melkor_mind_steal_info(); extern s32b RECHARGE; @@ -206,13 +206,13 @@ extern s32b TRACKER; extern s32b INERTIA_CONTROL; extern timer_type *TIMER_INERTIA_CONTROL; -casting_result meta_recharge(int); +casting_result meta_recharge(); const char *meta_recharge_info(); -casting_result meta_spellbinder(int); +casting_result meta_spellbinder(); const char *meta_spellbinder_info(); -casting_result meta_disperse_magic(int); -casting_result meta_tracker(int); -casting_result meta_inertia_control(int); +casting_result meta_disperse_magic(); +casting_result meta_tracker(); +casting_result meta_inertia_control(); const char *meta_inertia_control_info(); void meta_inertia_control_timer_callback(); @@ -224,13 +224,13 @@ extern s32b CONFUSE; extern s32b ARMOROFFEAR; extern s32b STUN; -casting_result mind_charm(int); +casting_result mind_charm(); const char *mind_charm_info(); -casting_result mind_confuse(int); +casting_result mind_confuse(); const char *mind_confuse_info(); -casting_result mind_armor_of_fear(int); +casting_result mind_armor_of_fear(); const char *mind_armor_of_fear_info(); -casting_result mind_stun(int); +casting_result mind_stun(); const char *mind_stun_info(); extern s32b MAGELOCK; @@ -238,23 +238,23 @@ extern s32b SLOWMONSTER; extern s32b ESSENCESPEED; extern s32b BANISHMENT; -casting_result tempo_magelock(int); -casting_result tempo_slow_monster(int); +casting_result tempo_magelock(); +casting_result tempo_slow_monster(); const char *tempo_slow_monster_info(); -casting_result tempo_essence_of_speed(int); +casting_result tempo_essence_of_speed(); const char *tempo_essence_of_speed_info(); -casting_result tempo_banishment(int); +casting_result tempo_banishment(); const char *tempo_banishment_info(); extern s32b TULKAS_AIM; extern s32b TULKAS_WAVE; extern s32b TULKAS_SPIN; -casting_result tulkas_divine_aim(int); +casting_result tulkas_divine_aim(); const char *tulkas_divine_aim_info(); -casting_result tulkas_wave_of_power(int); +casting_result tulkas_wave_of_power(); const char *tulkas_wave_of_power_info(); -casting_result tulkas_whirlwind(int); +casting_result tulkas_whirlwind(); extern s32b DRAIN; extern s32b GENOCIDE; @@ -264,11 +264,11 @@ extern s32b FLAMEOFUDUN; int udun_in_book(s32b sval, s32b pval); int levels_in_book(s32b sval, s32b pval); -casting_result udun_drain(int); -casting_result udun_genocide(int); -casting_result udun_wraithform(int); +casting_result udun_drain(); +casting_result udun_genocide(); +casting_result udun_wraithform(); const char *udun_wraithform_info(); -casting_result udun_flame_of_udun(int); +casting_result udun_flame_of_udun(); const char *udun_flame_of_udun_info(); extern s32b TIDALWAVE; @@ -277,15 +277,15 @@ extern s32b ENTPOTION; extern s32b VAPOR; extern s32b GEYSER; -casting_result water_tidal_wave(int); +casting_result water_tidal_wave(); const char *water_tidal_wave_info(); -casting_result water_ice_storm(int); +casting_result water_ice_storm(); const char *water_ice_storm_info(); -casting_result water_ent_potion(int); +casting_result water_ent_potion(); const char *water_ent_potion_info(); -casting_result water_vapor(int); +casting_result water_vapor(); const char *water_vapor_info(); -casting_result water_geyser(int); +casting_result water_geyser(); const char *water_geyser_info(); extern s32b YAVANNA_CHARM_ANIMAL; @@ -294,15 +294,15 @@ extern s32b YAVANNA_TREE_ROOTS; extern s32b YAVANNA_WATER_BITE; extern s32b YAVANNA_UPROOT; -casting_result yavanna_charm_animal(int); +casting_result yavanna_charm_animal(); const char *yavanna_charm_animal_info(); -casting_result yavanna_grow_grass(int); +casting_result yavanna_grow_grass(); const char *yavanna_grow_grass_info(); -casting_result yavanna_tree_roots(int); +casting_result yavanna_tree_roots(); const char *yavanna_tree_roots_info(); -casting_result yavanna_water_bite(int); +casting_result yavanna_water_bite(); const char *yavanna_water_bite_info(); -casting_result yavanna_uproot(int); +casting_result yavanna_uproot(); const char *yavanna_uproot_info(); extern s32b GROWTREE; @@ -312,16 +312,16 @@ extern s32b REGENERATION; extern s32b SUMMONANNIMAL; extern s32b GROW_ATHELAS; -casting_result nature_grow_trees(int); +casting_result nature_grow_trees(); const char *nature_grow_trees_info(); -casting_result nature_healing(int); +casting_result nature_healing(); const char *nature_healing_info(); -casting_result nature_recovery(int); -casting_result nature_regeneration(int); +casting_result nature_recovery(); +casting_result nature_regeneration(); const char *nature_regeneration_info(); -casting_result nature_summon_animal(int); +casting_result nature_summon_animal(); const char *nature_summon_animal_info(); -casting_result nature_grow_athelas(int); +casting_result nature_grow_athelas(); extern s32b DEVICE_HEAL_MONSTER; extern s32b DEVICE_SPEED_MONSTER; @@ -332,18 +332,18 @@ extern s32b DEVICE_NOTHING; extern s32b DEVICE_HOLY_FIRE; extern s32b DEVICE_THUNDERLORDS; -casting_result device_heal_monster(int); +casting_result device_heal_monster(); const char *device_heal_monster_info(); -casting_result device_haste_monster(int); +casting_result device_haste_monster(); const char *device_haste_monster_info(); -casting_result device_wish(int); -casting_result device_summon_monster(int); -casting_result device_mana(int); +casting_result device_wish(); +casting_result device_summon_monster(); +casting_result device_mana(); const char *device_mana_info(); -casting_result device_nothing(int); -casting_result device_holy_fire(int); +casting_result device_nothing(); +casting_result device_holy_fire(); const char *device_holy_fire_info(); -casting_result device_thunderlords(int); +casting_result device_thunderlords(); extern s32b MUSIC_STOP; extern s32b MUSIC_HOLD; @@ -359,49 +359,49 @@ extern s32b MUSIC_WIND; extern s32b MUSIC_YLMIR; extern s32b MUSIC_AMBARKANTA; -casting_result music_stop_singing_spell(int); +casting_result music_stop_singing_spell(); int music_holding_pattern_lasting(); -casting_result music_holding_pattern_spell(int); +casting_result music_holding_pattern_spell(); const char *music_holding_pattern_info(); int music_illusion_pattern_lasting(); -casting_result music_illusion_pattern_spell(int); +casting_result music_illusion_pattern_spell(); const char *music_illusion_pattern_info(); int music_stun_pattern_lasting(); -casting_result music_stun_pattern_spell(int); +casting_result music_stun_pattern_spell(); const char *music_stun_pattern_info(); int music_song_of_the_sun_lasting(); -casting_result music_song_of_the_sun_spell(int); +casting_result music_song_of_the_sun_spell(); int music_flow_of_life_lasting(); -casting_result music_flow_of_life_spell(int); +casting_result music_flow_of_life_spell(); const char *music_flow_of_life_info(); int music_heroic_ballad_lasting(); -casting_result music_heroic_ballad_spell(int); +casting_result music_heroic_ballad_spell(); int music_hobbit_melodies_lasting(); -casting_result music_hobbit_melodies_spell(int); +casting_result music_hobbit_melodies_spell(); const char *music_hobbit_melodies_info(); int music_clairaudience_lasting(); -casting_result music_clairaudience_spell(int); +casting_result music_clairaudience_spell(); const char *music_clairaudience_info(); -casting_result music_blow_spell(int); +casting_result music_blow_spell(); const char *music_blow_info(); -casting_result music_gush_of_wind_spell(int); +casting_result music_gush_of_wind_spell(); const char *music_gush_of_wind_info(); -casting_result music_horns_of_ylmir_spell(int); +casting_result music_horns_of_ylmir_spell(); const char *music_horns_of_ylmir_info(); -casting_result music_ambarkanta_spell(int); +casting_result music_ambarkanta_spell(); extern s32b AULE_FIREBRAND; extern s32b AULE_ENCHANT_WEAPON; extern s32b AULE_ENCHANT_ARMOUR; extern s32b AULE_CHILD; -casting_result aule_firebrand_spell(int); +casting_result aule_firebrand_spell(); const char *aule_firebrand_info(); -casting_result aule_enchant_weapon_spell(int); +casting_result aule_enchant_weapon_spell(); const char *aule_enchant_weapon_info(); -casting_result aule_enchant_armour_spell(int); +casting_result aule_enchant_armour_spell(); const char *aule_enchant_armour_info(); -casting_result aule_child_spell(int); +casting_result aule_child_spell(); const char *aule_child_info(); extern s32b MANDOS_TEARS_LUTHIEN; @@ -409,13 +409,13 @@ extern s32b MANDOS_SPIRIT_FEANTURI; extern s32b MANDOS_TALE_DOOM; extern s32b MANDOS_CALL_HALLS; -casting_result mandos_tears_of_luthien_spell(int); +casting_result mandos_tears_of_luthien_spell(); const char *mandos_tears_of_luthien_info(); -casting_result mandos_spirit_of_the_feanturi_spell(int); +casting_result mandos_spirit_of_the_feanturi_spell(); const char *mandos_spirit_of_the_feanturi_info(); -casting_result mandos_tale_of_doom_spell(int); +casting_result mandos_tale_of_doom_spell(); const char *mandos_tale_of_doom_info(); -casting_result mandos_call_to_the_halls_spell(int); +casting_result mandos_call_to_the_halls_spell(); const char *mandos_call_to_the_halls_info(); extern s32b ULMO_BELEGAER; @@ -423,13 +423,13 @@ extern s32b ULMO_DRAUGHT_ULMONAN; extern s32b ULMO_CALL_ULUMURI; extern s32b ULMO_WRATH; -casting_result ulmo_song_of_belegaer_spell(int); +casting_result ulmo_song_of_belegaer_spell(); const char *ulmo_song_of_belegaer_info(); -casting_result ulmo_draught_of_ulmonan_spell(int); +casting_result ulmo_draught_of_ulmonan_spell(); const char *ulmo_draught_of_ulmonan_info(); -casting_result ulmo_call_of_the_ulumuri_spell(int); +casting_result ulmo_call_of_the_ulumuri_spell(); const char *ulmo_call_of_the_ulumuri_info(); -casting_result ulmo_wrath_of_ulmo_spell(int); +casting_result ulmo_wrath_of_ulmo_spell(); const char *ulmo_wrath_of_ulmo_info(); extern s32b VARDA_LIGHT_VALINOR; @@ -437,9 +437,9 @@ extern s32b VARDA_CALL_ALMAREN; extern s32b VARDA_EVENSTAR; extern s32b VARDA_STARKINDLER; -casting_result varda_light_of_valinor_spell(int); +casting_result varda_light_of_valinor_spell(); const char *varda_light_of_valinor_info(); -casting_result varda_call_of_almaren_spell(int); -casting_result varda_evenstar_spell(int); -casting_result varda_star_kindler_spell(int); +casting_result varda_call_of_almaren_spell(); +casting_result varda_evenstar_spell(); +casting_result varda_star_kindler_spell(); const char *varda_star_kindler_info(); diff --git a/src/spells4.cc b/src/spells4.cc index cd3946c1..f3ffbfe7 100644 --- a/src/spells4.cc +++ b/src/spells4.cc @@ -543,7 +543,7 @@ void lua_cast_school_spell(s32b s, bool_ no_cost) /* Invoke the spell effect */ if (!magik(spell_chance_book(s))) { - use = (spell_type_produce_effect(spell, -1) != NO_CAST); + use = (spell_type_produce_effect(spell) != NO_CAST); } else { @@ -561,7 +561,7 @@ void lua_cast_school_spell(s32b s, bool_ no_cost) } else { - spell_type_produce_effect(spell, -1); + spell_type_produce_effect(spell); } /* Use the mana/piety */ -- cgit v1.2.3