Fixes displaced hat/hair in pokemarts

This commit is contained in:
infinitefusion
2024-07-03 20:42:11 -04:00
parent dee677224d
commit 6180590860
9 changed files with 46 additions and 3 deletions

View File

@@ -17,6 +17,11 @@ class Sprite_Player < Sprite_Character
getClothedPlayerSprite(true)
end
def toggleWearableScrollAdjustments(value)
@hair.must_adjust_scroll = value
@hat.must_adjust_scroll = value
end
def updateCharacterBitmap
skinTone = $Trainer.skin_tone ? $Trainer.skin_tone : 0
baseBitmapFilename = getBaseOverworldSpriteFilename(@character_name, skinTone)
@@ -78,9 +83,7 @@ class Sprite_Player < Sprite_Character
return baseBitmap
end
def positionHair(baseBitmap, hairBirmap, offset)
baseBitmap.blt(offset[0], offset[1], hairBirmap, hairBirmap.rect)
end
def update