Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
log_faction_ships.py
Go to the documentation of this file.
1 import math
2 import faction_ships
3 stattable={}
4 def lg (num):
5  return math.log(1+num)/math.log(2)
6 for i in faction_ships.stattableexp:
7  tuple = faction_ships.stattableexp[i]
8  stattable[i]=(tuple[0],tuple[1],lg(tuple[2]),lg(tuple[3]),lg(tuple[4]))
9  stattable[i+'.rgspec']=(tuple[0],tuple[1]*.8,lg(tuple[2])*.8,lg(tuple[3])*.8,lg(tuple[4])*.8)
10  stattable[i+'.milspec']=(tuple[0],tuple[1]*.65,lg(tuple[2])*.65,lg(tuple[3])*.65,lg(tuple[4])*.65)
11  stattable[i+'.stock']=(tuple[0],tuple[1]*.5,lg(tuple[2])*.5,lg(tuple[3])*.5,lg(tuple[4])*.5)
12  stattable[i+'.blank']=(tuple[0],tuple[1]*.1,lg(tuple[2])*.1,lg(tuple[3])*.1,lg(tuple[4])*.1)
13  stattable[i+'.civvie']=(tuple[0],tuple[1]*.2,lg(tuple[2])*.2,lg(tuple[3])*.2,lg(tuple[4])*.2)
14 print stattable