Exemple #1
0
def detailedSetting_func3():
    flowReturn = CreatorCharacterPanel.detailedSetting3Panel()
    sexTemDataList = ValueHandle.dictKeysToList(TextLoading.getTextData(TextLoading.attrTemplatePath,'SexExperience'))
    sexTemDataList = ValueHandle.reverseArrayList(sexTemDataList)
    sexTemName = sexTemDataList[flowReturn]
    if flowReturn != len(sexTemDataList) - 1:
        CacheContorl.featuresList['Chastity'] = ''
    else:
        pass
    characterSexExperienceData = AttrCalculation.getSexExperience(sexTemName)
    CacheContorl.temporaryCharacter['SexExperience'] = characterSexExperienceData
    CacheContorl.temporaryCharacter['SexGrade'] = AttrCalculation.getSexGrade(characterSexExperienceData)
    PyCmd.clr_cmd()
    detailedSetting_func4()
Exemple #2
0
def getSceneToSceneMapList(nowScenePath: list,
                           targetScenePath: list) -> 'str_common,list':
    '''
    获取场景到场景之间需要经过的地图列表
    如果两个场景属于同一地图并在同一层级,则返回common
    Keyword arguments:
    nowScenePath -- 当前场景路径
    targetScenePath -- 目标场景路径
    '''
    sceneAffiliation = judgeSceneAffiliation(nowScenePath, targetScenePath)
    if sceneAffiliation == 'common':
        return 'common'
    elif sceneAffiliation == 'subordinate':
        return getMapHierarchyListForScenePath(nowScenePath, targetScenePath)
    elif sceneAffiliation == 'nobelonged':
        commonMap = getCommonMapForScenePath(nowScenePath, targetScenePath)
        nowSceneToCommonMap = getMapHierarchyListForScenePath(
            nowScenePath, commonMap)
        targetSceneToCommonMap = getMapHierarchyListForScenePath(
            targetScenePath, commonMap)
        commonMapToTargetScene = ValueHandle.reverseArrayList(
            targetSceneToCommonMap)
        return nowSceneToCommonMap + commonMapToTargetScene[1:]