summaryrefslogtreecommitdiffstats
path: root/trunk/source/abl-show.cc
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/source/abl-show.cc')
-rw-r--r--trunk/source/abl-show.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/trunk/source/abl-show.cc b/trunk/source/abl-show.cc
index 43ddae5ee1..64a1c10e74 100644
--- a/trunk/source/abl-show.cc
+++ b/trunk/source/abl-show.cc
@@ -329,6 +329,19 @@ const std::string make_cost_description( const struct ability_def &abil )
return (ret);
}
+std::vector<const char *> get_ability_names()
+{
+ std::vector<const char *> abils;
+ if (generate_abilities())
+ {
+ for (int i = 0; i < 52; ++i)
+ {
+ if (Curr_abil[i].which != ABIL_NON_ABILITY)
+ abils.push_back( get_ability_name_by_index(i) );
+ }
+ }
+ return (abils);
+}
/*
Activates a menu which gives player access to all of their non-spell