* custom artist lists * override lists logic and fix for artists * support for TI and Lora * Added support for custom lists * overwrite type of image option * some minor fixes * Foods deserved their own list * Added loads of new stuff in listwork Also added an automatic duplicate remover * Descriptions and lists * Create custom_files.md * Create override_subject_and_infinite_variations.md * Update override_subject_and_infinite_variations.md * Update README.md * minor typos
33 lines
1.1 KiB
Python
33 lines
1.1 KiB
Python
import random
|
|
def common_dist(insanitylevel):
|
|
return (random.randint(1, 5)<insanitylevel or insanitylevel >= 10)
|
|
|
|
def normal_dist(insanitylevel):
|
|
return (random.randint(1, 10)<insanitylevel or insanitylevel >= 10)
|
|
|
|
def uncommon_dist(insanitylevel):
|
|
return (random.randint(1, 18)<insanitylevel or insanitylevel >= 10)
|
|
|
|
def rare_dist(insanitylevel):
|
|
roll = (random.randint(1, 30)<insanitylevel or insanitylevel >= 10)
|
|
if(roll):
|
|
print("adding something rare to the prompt")
|
|
return roll
|
|
|
|
def legendary_dist(insanitylevel):
|
|
roll = (random.randint(1, 50)<insanitylevel)
|
|
if(roll):
|
|
print("Nice! adding something legendary to the prompt")
|
|
return roll
|
|
|
|
def unique_dist(insanitylevel):
|
|
roll = (random.randint(1, 75)<insanitylevel)
|
|
if(roll):
|
|
print("Critical hit! Something unique has been added to the prompt")
|
|
return roll
|
|
|
|
def novel_dist(insanitylevel):
|
|
roll = (random.randint(1, 500)<insanitylevel)
|
|
if(roll):
|
|
print("Uh, something novel has been added to the prompt. Interesting.")
|
|
return roll |