diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-12-30 11:11:41 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-12-30 11:11:41 -0200 |
commit | efa9c59077254be8fef5a7008643a8a82ee92a1b (patch) | |
tree | 2bcd54e13e468ccbca3e8553959d7c1a9a5206fc | |
parent | ef673c93033b4826b0299698f9b864319787de5c (diff) | |
download | tools-efa9c59077254be8fef5a7008643a8a82ee92a1b.tar.gz tools-efa9c59077254be8fef5a7008643a8a82ee92a1b.tar.bz2 tools-efa9c59077254be8fef5a7008643a8a82ee92a1b.tar.xz tools-efa9c59077254be8fef5a7008643a8a82ee92a1b.zip |
Add HP/SP Table Generation Script File.
Current values are the ones for SP Table.
-rw-r--r-- | .gitignore | 3 | ||||
-rwxr-xr-x | misc/hpsp_tables.py | 46 |
2 files changed, 49 insertions, 0 deletions
@@ -76,3 +76,6 @@ hercules/old* *.patch *.orig *.rej + +# Jesusalva's personal stuff +misc/* diff --git a/misc/hpsp_tables.py b/misc/hpsp_tables.py new file mode 100755 index 0000000..53ab727 --- /dev/null +++ b/misc/hpsp_tables.py @@ -0,0 +1,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 |