Debian Codegraph @

source/util/gather_spells

raw
1 #!/usr/bin/env perl
2
3 use warnings;
4
5 undef $/;
6 open IN, "util/cpp_version spl-data.h|" or die "Can't read spl-data.h\n";
7 $_ = <IN>;
8 close IN;
9
10 for (/\{\s*SPELL_\w+,\s*"([^"\n"]+)"/sg)
11 {
12 next if /^[a-z]/; # dummy spells start with lowercase
13 next if $_ eq "Random Effects"; # wand-only spell
14 print "$_\n";
15 }