@@ -2304,42 +2304,17 @@ def applyKongModelSwaps(settings: Settings) -> None:
23042304 if value in (KongModels .krusha , KongModels .krool_cutscene , KongModels .krool_fight ):
23052305 fixModelSmallKongCollision (index )
23062306 if value == KongModels .krusha :
2307- placeKrushaHead (settings , index )
2307+ placeKrushaHead (index )
23082308 if index == Kongs .donkey :
23092309 fixBaboonBlasts ()
23102310 # Orange Switches
23112311 switch_faces = [0xB25 , 0xB1E , 0xC81 , 0xC80 , 0xB24 ]
23122312 base_im = getImageFile (25 , 0xC20 , True , 32 , 32 , TextureFormat .RGBA5551 )
23132313 orange_im = getImageFile (7 , 0x136 , False , 32 , 32 , TextureFormat .RGBA5551 )
23142314 if settings .colorblind_mode == ColorblindMode .off :
2315- match index :
2316- case Kongs .donkey :
2317- color_r = 255
2318- color_g = 224
2319- color_b = 8
2320- case Kongs .diddy :
2321- color_r = 255
2322- color_g = 48
2323- color_b = 32
2324- case Kongs .lanky :
2325- color_r = 40
2326- color_g = 168
2327- color_b = 255
2328- case Kongs .tiny :
2329- color_r = 216
2330- color_g = 100
2331- color_b = 248
2332- case Kongs .chunky :
2333- color_r = 0
2334- color_g = 255
2335- color_b = 0
2336- case _:
2337- color_r = 100
2338- color_g = 255
2339- color_b = 60
2340- orange_im = maskImageWithColor (orange_im , (color_r , color_g , color_b ))
2315+ orange_im = maskImageWithColor (orange_im , (0 , 150 , 0 ))
23412316 else :
2342- orange_im = maskImageWithColor (orange_im , (0 , 255 , 0 ))
2317+ orange_im = maskImageWithColor (orange_im , (0 , 255 , 0 )) # Brighter green makes this more distinguishable for colorblindness
23432318 dim_length = int (32 * ORANGE_SCALING )
23442319 dim_offset = int ((32 - dim_length ) / 2 )
23452320 orange_im = orange_im .resize ((dim_length , dim_length ))
@@ -2552,30 +2527,10 @@ def darkenDPad():
25522527 ROM ().writeBytes (px_data )
25532528
25542529
2555- def placeKrushaHead (settings : Settings , slot ):
2530+ def placeKrushaHead (slot ):
25562531 """Replace a kong's face with the Krusha face."""
2557- if settings .colorblind_mode != ColorblindMode .off :
2558- return
2559-
25602532 kong_face_textures = [[0x27C , 0x27B ], [0x279 , 0x27A ], [0x277 , 0x278 ], [0x276 , 0x275 ], [0x273 , 0x274 ]]
25612533 unc_face_textures = [[579 , 586 ], [580 , 587 ], [581 , 588 ], [582 , 589 ], [577 , 578 ]]
2562- krushaFace64 = getImageFile (TableNames .TexturesGeometry , getBonusSkinOffset (ExtraTextures .KrushaFace1 + slot ), True , 64 , 64 , TextureFormat .RGBA5551 )
2563- krushaFace64Left = krushaFace64 .crop ([0 , 0 , 32 , 64 ])
2564- krushaFace64Right = krushaFace64 .crop ([32 , 0 , 64 , 64 ])
2565- krushaFace64
2566- writeColorImageToROM (krushaFace64Left , 25 , kong_face_textures [slot ][0 ], 32 , 64 , False , TextureFormat .RGBA5551 )
2567- writeColorImageToROM (krushaFace64Right , 25 , kong_face_textures [slot ][1 ], 32 , 64 , False , TextureFormat .RGBA5551 )
2568- writeColorImageToROM (krushaFace64Left , 7 , unc_face_textures [slot ][0 ], 32 , 64 , False , TextureFormat .RGBA5551 )
2569- writeColorImageToROM (krushaFace64Right , 7 , unc_face_textures [slot ][1 ], 32 , 64 , False , TextureFormat .RGBA5551 )
2570-
2571- krushaFace32 = krushaFace64 .resize ((32 , 32 ))
2572- krushaFace32 = krushaFace32 .transpose (Image .Transpose .FLIP_TOP_BOTTOM )
2573- krushaFace32RBGA32 = getImageFile (TableNames .TexturesGeometry , getBonusSkinOffset (ExtraTextures .KrushaFace321 + slot ), True , 64 , 64 , TextureFormat .RGBA32 )
2574- writeColorImageToROM (krushaFace32 , 14 , 190 + slot , 32 , 32 , False , TextureFormat .RGBA5551 )
2575- writeColorImageToROM (krushaFace32RBGA32 , 14 , 197 + slot , 32 , 32 , False , TextureFormat .RGBA32 )
2576-
2577- """kong_face_textures = [[0x27C, 0x27B], [0x279, 0x27A], [0x277, 0x278], [0x276, 0x275], [0x273, 0x274]]
2578- unc_face_textures = [[579, 586], [580, 587], [581, 588], [582, 589], [577, 578]]
25792534 ROM_COPY = LocalROM ()
25802535 ROM_COPY .seek (0x1FF6000 )
25812536 left = []
@@ -2632,7 +2587,7 @@ def placeKrushaHead(settings: Settings, slot):
26322587 ROM_COPY .seek (rgba32_addr32 )
26332588 ROM_COPY .writeBytes (bytearray (data32_rgba32 ))
26342589 ROM_COPY .seek (rgba16_addr32 )
2635- ROM_COPY.writeBytes(bytearray(data32))"""
2590+ ROM_COPY .writeBytes (bytearray (data32 ))
26362591
26372592
26382593def getValueFromByteArray (ba : bytearray , offset : int , size : int ) -> int :
@@ -4142,7 +4097,6 @@ def showWinCondition(settings: Settings):
41424097 "Enforcing the law of the Jungle" ,
41434098 "Saving 20 frames" ,
41444099 "Reporting bugs. Unlike some" ,
4145- "Color-coding Krusha for convenience" ,
41464100)
41474101
41484102crown_heads = (
0 commit comments