From ebb2771875ec2fffd7c63ee138024e6ebc47ebf8 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Mon, 23 Feb 2015 09:11:55 +0100 Subject: Move school_spells array to spells5.cc --- src/spells5.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/spells5.hpp (limited to 'src/spells5.hpp') diff --git a/src/spells5.hpp b/src/spells5.hpp new file mode 100644 index 00000000..f94d0d39 --- /dev/null +++ b/src/spells5.hpp @@ -0,0 +1,8 @@ +#pragma once + +#include "h-basic.h" + +void school_spells_init(); +struct spell_type *spell_at(s32b index); +s16b get_random_spell(s16b random_type, int lev); +s16b get_random_stick(byte tval, int level); -- cgit v1.2.3 From 6cffbd70646ee66c3b2a2a2fd7fd35c23d88b93e Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Mon, 23 Feb 2015 09:12:00 +0100 Subject: Move cmd5.cc function declarations to separate header file Make a few of functions static, remove dead code and fix a few stray declarations while we're at it. --- src/spells5.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/spells5.hpp') diff --git a/src/spells5.hpp b/src/spells5.hpp index f94d0d39..7359fa16 100644 --- a/src/spells5.hpp +++ b/src/spells5.hpp @@ -6,3 +6,4 @@ void school_spells_init(); struct spell_type *spell_at(s32b index); s16b get_random_spell(s16b random_type, int lev); s16b get_random_stick(byte tval, int level); +int find_spell(cptr name); -- cgit v1.2.3