File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,12 @@ public override void Awake(Scene scene) {
5050 string spritePath = "CollabUtils2/miniheart/" + spriteName + "/" ;
5151 bool alreadyCollectedInSave = SaveData . Instance . Areas_Safe [ area . ID ] . Modes [ ( int ) area . Mode ] . HeartGem ;
5252 if ( alreadyCollectedInSave ) {
53- spritePath = "CollabUtils2/miniheart/ghost/ghost" ;
53+ // use the ghost sprite specific to the heart: instead of reading 00.png, read ghost00.png
54+ spritePath += "ghost" ;
55+ if ( ! GFX . Game . Has ( spritePath + "00" ) ) {
56+ // if those sprites are missing, use the default ghost heart instead
57+ spritePath = "CollabUtils2/miniheart/ghost/ghost" ;
58+ }
5459 }
5560
5661 Add ( sprite = new Sprite ( GFX . Game , spritePath ) ) ;
Original file line number Diff line number Diff line change 11- Name : CollabUtils2
2- Version : 1.4.8
2+ Version : 1.5.0
33 DLL : bin/Debug/net452/CollabUtils2.dll
44 Dependencies :
55 - Name : Everest
You can’t perform that action at this time.
0 commit comments