Beispiel #1
0
def getRandNpcAgeTem(agejudge: str) -> int:
    '''
    按年龄断随机生成npc年龄
    Keyword arguments:
    ageJudge -- 年龄段
    '''
    nowAgeWeightData = ageTemWeightData[agejudge]
    nowAgeTem = ValueHandle.getRandomForWeight(nowAgeWeightData)
    return nowAgeTem
Beispiel #2
0
def getRandNpcBodyFatTem(ageJudge: str, bmiTem: str) -> str:
    '''
    按年龄段体脂率分布比例随机生成体脂率模板
    Keyword arguments:
    ageJudge -- 年龄段
    bmiTem -- bmi模板
    '''
    nowBodyFatData = bodyFatWeightData[ageJudge][bmiTem]
    return ValueHandle.getRandomForWeight(nowBodyFatData)
Beispiel #3
0
def getRandNpcFatTem(agejudge: str) -> str:
    '''
    按人群年龄段体重分布比例随机生成体重模板
    Keyword arguments:
    agejudge -- 年龄段
    '''
    nowFatWeightData = fatWeightData[agejudge]
    nowFatTem = ValueHandle.getRandomForWeight(nowFatWeightData)
    return nowFatTem
Beispiel #4
0
def getRandNpcSexExperienceTem(age:int,sex:str) -> str:
    '''
    按年龄范围随机获取性经验模板
    Keyword arguments:
    age -- 年龄
    sex -- 性别
    '''
    ageJudgeSexExperienceTemData = TextLoading.getTextData(TextLoading.attrTemplatePath,'AgeJudgeSexExperienceTem')
    if sex == 'Asexual':
        sex = 'Woman'
    if sex == 'Futa':
        sex = 'Man'
    nowTemData = ageJudgeSexExperienceTemData[sex]
    ageRegionList = [int(i) for i in nowTemData.keys()]
    ageRegion = str(ValueHandle.getOldValueForList(age,ageRegionList))
    ageRegionData = nowTemData[ageRegion]
    return ValueHandle.getRandomForWeight(ageRegionData)
Beispiel #5
0
def getRandNpcAgeTem(agejudge):
    nowAgeWeightData = ageTemWeightData[agejudge]
    nowAgeTem = ValueHandle.getRandomForWeight(nowAgeWeightData)
    return nowAgeTem
Beispiel #6
0
def getRandNpcBodyFatTem(ageJudge, bmiTem):
    nowBodyFatData = bodyFatWeightData[ageJudge][bmiTem]
    return ValueHandle.getRandomForWeight(nowBodyFatData)
Beispiel #7
0
def getRandNpcFatTem(agejudge):
    nowFatWeightData = fatWeightData[agejudge]
    nowFatTem = ValueHandle.getRandomForWeight(nowFatWeightData)
    return nowFatTem
Beispiel #8
0
def getRandNpcChestTem() -> str:
    '''
    随机获取npc罩杯模板
    '''
    return ValueHandle.getRandomForWeight(chestTemWeightData)