def detailedSetting_func1(): flowRetun = CreatorCharacterPanel.detailedSetting1Panel() characterSex = CacheContorl.characterData['character']['0']['Sex'] sexList = list(TextLoading.getTextData(TextLoading.rolePath, 'Sex')) if flowRetun == 0: CacheContorl.featuresList['Age'] = featuresList["Age"][3] elif flowRetun == 4: if characterSex == sexList[0]: CacheContorl.featuresList['Age'] = featuresList["Age"][0] elif characterSex == sexList[1]: CacheContorl.featuresList['Age'] = featuresList["Age"][1] else: CacheContorl.featuresList['Age'] = featuresList["Age"][2] PyCmd.clr_cmd() CacheContorl.temporaryCharacter['Features'] = CacheContorl.featuresList.copy() characterAgeTemName = AttrCalculation.getAgeTemList()[flowRetun] characterAge = AttrCalculation.getAge(characterAgeTemName) characterTem = characterSex characterHeigt = AttrCalculation.getHeight(characterTem,characterAge,CacheContorl.temporaryCharacter['Features']) characterBmi = AttrCalculation.getBMI('Ordinary') characterWeight = AttrCalculation.getWeight(characterBmi,characterHeigt['NowHeight']) characterBodyFat = AttrCalculation.getBodyFat(characterSex,'Ordinary') characterMeasurements = AttrCalculation.getMeasurements(characterSex,characterHeigt['NowHeight'],characterWeight,characterBodyFat,'Ordinary') CacheContorl.temporaryCharacter['Age'] = characterAge CacheContorl.temporaryCharacter['Height'] = characterHeigt CacheContorl.temporaryCharacter['Weight'] = characterWeight CacheContorl.temporaryCharacter['BodyFat'] = characterBodyFat CacheContorl.temporaryCharacter['Measurements'] = characterMeasurements PyCmd.clr_cmd() detailedSetting_func2()
def detailedSetting_func1(): ''' 询问玩家年龄模板流程 ''' flowRetun = CreatorCharacterPanel.detailedSetting1Panel() characterSex = CacheContorl.characterData['character'][0].Sex sexList = list(TextLoading.getTextData(TextLoading.rolePath, 'Sex')) characterAgeTemName = AttrCalculation.getAgeTemList()[flowRetun] CacheContorl.characterData['character'][0].Age = AttrCalculation.getAge(characterAgeTemName) PyCmd.clr_cmd() detailedSetting_func3()