ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/doc/spoiler/mag-extract
Revision: 1.1
Committed: Fri Feb 3 07:12:45 2006 UTC (18 years, 4 months ago) by root
Branch: MAIN
Branch point for: UPSTREAM
Log Message:
Initial revision

File Contents

# Content
1 {
2 type = $1 + 0;
3 if (type == 99 || type == 100 || type == 113) {
4 if (type == 99) {
5 name = capitalize($2);
6 gsub("_", " ", name);
7 } else
8 name = capitalize($3);
9
10 printf("%s &%s &+%d &%s\\\\\n", name, $10, $8, $4);
11 }
12 }
13
14 function capitalize(str) {
15 return toupper(substr(str, 1, 1)) substr(str, 2);
16 }