[Add] Tech.

This commit is contained in:
Allanis 2013-04-19 19:13:45 +01:00
parent a0d57c0cec
commit 86dd13174b
2 changed files with 11 additions and 0 deletions

View File

@ -359,6 +359,17 @@ class Space:
services = services + m
planet["general"]["services"] = services
# Get the techs.
tech0 = self.__pwidget("spiTech0").get_text()
if tech0 > 0:
try:
planet["general"]["tech"]["main"] = tech0
except:
planet["general"]["tech"] = {}
planet["general"]["tech"]["main"] = tech0
else:
del planet["general"]["tech"]["main"]
def __sinpStore(self, system, wgt, tag, minortag=None):
text = self.__swidget(wgt).get_text()
if minortag==None:

Binary file not shown.