blob: 53ab727817146ebf887ad9be2decf350d2750e64 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#!/usr/bin/python2.7
# it: Initial Value
# v: Basic Increment
# i: Initial level (minus one)
# s: steps to increase (default 10)
# t: increase on each step (default 1)
# m: Maximum level
# b: Base Value Boost (raises it)
it=120
v=8
i=0
s=20
t=0
b=20
m=160
# head: tabulation on each line
# h1: header on first line, can be HPTable or SPTable
# tail: Comment after each line, will be followed by the level range
head=" "
h1=" SPTable:[ "
tail=" // "
# The code begins here (bf: buffer)
bf=""
print ""
while (i <= m):
i+=1
if i==1:
bf+=h1
elif i % 10 == 1:
bf+=tail
bf+=str(i-10)
bf+=" - "
bf+=str(i-1)
print bf
bf=""
bf+=head
if (i % s == 0):
v+=t
it+=b
bf+=str(it)
bf+=", "
it+=v
# Everything was printed to stdout
|