Skip to content

Commit

Permalink
siamocha not meant to be darker than colourpoint-
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinch-Bug committed Sep 21, 2024
1 parent cb01a9c commit 3e5a414
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions scripts/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def MakeCat(whichmain, whichcolour, whichbase, cat_unders, special=None):
colourbase.set_alpha(100)
elif((("cb" in genotype.pointgene or genotype.pointgene[0] == "cm") and cat_sprite != "20") or genotype.pointgene == ["cb", "cb"] or ((cat_sprite != "20" or ("cb" in genotype.pointgene or genotype.pointgene[0] == "cm")) and cat.season == 'Leaf-bare')):
colourbase.set_alpha(50)
elif(cat_sprite != "20" or ("cb" in genotype.pointgene or genotype.pointgene[0] == "cm")):
elif(("cb" in genotype.pointgene or genotype.pointgene[0] == "cm")):
colourbase.set_alpha(15)
else:
colourbase.set_alpha(0)
Expand All @@ -323,14 +323,17 @@ def MakeCat(whichmain, whichcolour, whichbase, cat_unders, special=None):
pointbase.blit(sprites.sprites[stripecolourdict.get(whichcolour, whichcolour)], (0, 0))
if phenotype.caramel == 'caramel' and not is_red:
pointbase.blit(sprites.sprites['caramel0'], (0, 0))
pointbase.set_alpha(204)
pointbase.set_alpha(102)
pointbase2 = pygame.Surface((sprites.size, sprites.size), pygame.HWSURFACE | pygame.SRCALPHA)
pointbase2.blit(sprites.sprites['lightbasecolours0'], (0, 0))
pointbase2.blit(pointbase, (0, 0))
whichmain = AddStripes(whichmain, whichcolour, whichbase, coloursurface=pointbase2)
else:
if("black" in whichcolour and cat_sprite != "20"):
whichmain = AddStripes(whichmain, 'lightbasecolours1', whichbase)
stripecolour = pygame.Surface((sprites.size, sprites.size), pygame.HWSURFACE | pygame.SRCALPHA)
stripecolour = AddStripes(stripecolour, 'lightbasecolours1', whichbase)
stripecolour.set_alpha(102)
whichmain.blit(stripecolour, (0, 0))
else:
whichmain = AddStripes(whichmain, 'lightbasecolours0', whichbase)

Expand Down Expand Up @@ -386,9 +389,9 @@ def MakeCat(whichmain, whichcolour, whichbase, cat_unders, special=None):
pointbase.blit(colourbase, (0, 0))
else:
if((("cb" in genotype.pointgene or genotype.pointgene[0] == "cm") and cat_sprite != "20") or ((cat_sprite != "20" or ("cb" in genotype.pointgene or genotype.pointgene[0] == "cm")) and cat.season == "Leaf-bare")):
colourbase.set_alpha(204)
colourbase.set_alpha(180)
elif(cat_sprite != "20" or ("cb" in genotype.pointgene or genotype.pointgene[0] == "cm")):
colourbase.set_alpha(125)
colourbase.set_alpha(50)
else:
colourbase.set_alpha(0)

Expand Down

0 comments on commit 3e5a414

Please sign in to comment.