[Fix] There, resource editor should no longer kill techs if a special is not set.
This commit is contained in:
parent
e20b45a383
commit
df54e0e4f3
@ -563,23 +563,16 @@ class Space:
|
|||||||
|
|
||||||
# Get the techs.
|
# Get the techs.
|
||||||
tech = self.__pwidget("spiTech0").get_text()
|
tech = self.__pwidget("spiTech0").get_text()
|
||||||
if tech > 0:
|
try:
|
||||||
try:
|
planet["general"]["tech"]["main"] = tech
|
||||||
planet["general"]["tech"]["main"] = tech
|
except:
|
||||||
except:
|
planet["general"]["tech"] = {}
|
||||||
planet["general"]["tech"] = {}
|
planet["general"]["tech"]["main"] = tech
|
||||||
planet["general"]["tech"]["main"] = tech
|
tech = self.__pwidget("spiTech1").get_text()
|
||||||
else:
|
try:
|
||||||
del planet["general"]["tech"]["main"]
|
planet["general"]["tech"]["special"] = tech
|
||||||
tech = self.__pwidget("spiTech1").get_text()
|
except:
|
||||||
if tech > 0:
|
planet["general"]["tech"]["special"] = tech
|
||||||
try:
|
|
||||||
planet["general"]["tech"]["special"] = tech
|
|
||||||
except:
|
|
||||||
planet["general"]["tech"] = {}
|
|
||||||
planet["general"]["tech"]["special"] = tech
|
|
||||||
else:
|
|
||||||
del planet["general"]["tech"]["special"]
|
|
||||||
|
|
||||||
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()
|
||||||
|
Loading…
Reference in New Issue
Block a user