Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

    # Filter on Gender
    filteringPortraits = []
    for p in validPortraits:
        if p.genders.has(person.sex):
            filteringPortraits.append(p) #Add portrait that has required sex
    if portraitSettings.debug: print('Filtered on gender %s, resulted in %d portraits.' % [person.sex, filteringPortraits.size()])
    if !filteringPortraits.empty():
        if (filteringPortraits.size() < portraitSettings.minMatch):
            return
        validPortraits.clear()
        validPortraits = filteringPortraits

It's quite a small change in randomportraits.gd.  (If you get some indent compile errors, as I did, use spaces instead of indents).