summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/skills2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/skills2.cc')
-rw-r--r--crawl-ref/source/skills2.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc
index c9c0c0046e..534220621d 100644
--- a/crawl-ref/source/skills2.cc
+++ b/crawl-ref/source/skills2.cc
@@ -2178,3 +2178,24 @@ bool is_invalid_skill(int skill)
return (false);
}
+
+void dump_skills(std::string &text)
+{
+ char tmp_quant[20];
+ for (unsigned char i = 0; i < 50; i++)
+ {
+ if (you.skills[i] > 0)
+ {
+ text += ( (you.skills[i] == 27) ? " * " :
+ (you.practise_skill[i]) ? " + "
+ : " - " );
+
+ text += "Level ";
+ itoa( you.skills[i], tmp_quant, 10 );
+ text += tmp_quant;
+ text += " ";
+ text += skill_name(i);
+ text += "\n";
+ }
+ }
+}