Skip to content

Commit

Permalink
fixed cat randomisation
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinch-Bug committed Dec 20, 2024
1 parent 3e550ed commit 7a0f4bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/cat/cats.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def randomize_looks(self, just_pattern=False):
def SubRandomize(genotype, phenotype):
phenotype.SetPoints(choice(['Normal', 'Colourpoint', 'Mink', 'Sepia', 'Point-Albino', 'Sepia-Albino', 'Siamocha', 'Burmocha', 'Mocha', 'Mocha-Albino']))
genotype.tortiepattern = [choice(list(tortie_patches_shapes.keys()))]
if random() < 0.1:
if random.random() < 0.1:
genotype.merlepattern = [choice(list(tortie_patches_shapes.keys()))]
genotype.chimerapattern = choice(list(tortie_patches_shapes.keys()))
if genotype.sexgene is not ['O', 'O']:
Expand All @@ -87,7 +87,7 @@ def SubRandomize(genotype, phenotype):
phenotype.SetBaseColour(choice(['Black', 'Blue', 'Red', 'Cream', 'White', 'Albino', 'Chocolate', 'Lilac', 'Cinnamon', 'Fawn', 'Dove', 'Platinum',
'Honey', 'Ivory', 'Champagne', 'Lavender', 'Buff', 'Beige']).lower())

if random() < 0.1:
if random.random() < 0.1:
genotype.specialred = choice(['cameo', 'cameo', 'cameo', 'cameo', 'cameo', 'cameo', 'cameo', 'pseudo-cinnamon', 'blue-red', 'blue-tipped', 'blue-tipped'])
else:
genotype.specialred = "none"
Expand Down Expand Up @@ -145,7 +145,7 @@ def SubRandomize(genotype, phenotype):

genotype.soktype = choice(['normal markings', 'normal markings', 'normal markings', 'normal markings','normal markings' , 'full sokoke', 'mild fading', 'mild fading'])

genotype.fevercoat = random() < 0.1
genotype.fevercoat = random.random() < 0.1
genotype.silver[0] = choice(['I', 'i', 'i'])
genotype.wbtype = choice(['low', 'medium', 'high', 'shaded', 'chinchilla'])
genotype.ruftype = choice(['low', 'medium', 'rufoused'])
Expand Down

0 comments on commit 7a0f4bf

Please sign in to comment.