[Add] Tech.
This commit is contained in:
parent
a0d57c0cec
commit
86dd13174b
@ -359,6 +359,17 @@ class Space:
|
|||||||
services = services + m
|
services = services + m
|
||||||
planet["general"]["services"] = services
|
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):
|
def __sinpStore(self, system, wgt, tag, minortag=None):
|
||||||
text = self.__swidget(wgt).get_text()
|
text = self.__swidget(wgt).get_text()
|
||||||
if minortag==None:
|
if minortag==None:
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user