ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/doc/playbook-html/levels-extract
Revision: 1.2
Committed: Thu Sep 7 21:43:23 2006 UTC (17 years, 8 months ago) by pippijn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
State: FILE REMOVED
Log Message:
Moved documents to doc/historic

File Contents

# Content
1
2 BEGIN {
3 # Read the attack-types (and immune/protection)
4 while ((getline buff < living_c) == 1) {
5 if (buff ~ /static uint32 levels\[/) {
6 lev = 1;
7 while (1) {
8 getline buff < living_c;
9 if(lev==1) getline buff < living_c;
10 # if (buff ~ "^}")
11 if (buff ~ /};/)
12 break;
13 gsub("[ \t]*\"", "", buff);
14 nr = split(buff, arr, ",");
15 # printf("nr=%d: %s\n",nr, buff);
16 for (i = 1; i<6 && (arr[i]!="") ; i++) {
17 printf("<tr><td align=center>%d</td><td align=center>%s</td></tr>\n",lev++,arr[i]);
18 }
19 if(lev>9) break; # get only first 10 levels
20 }
21 break;
22 }
23 }
24 close(living_c);
25 }
26