@@ -25,6 +25,8 @@ public Form1()
2525 private int currentProgress = 0 ;
2626 private static int maxProgress = 0 ;
2727
28+ private List < string > SpoilerLog = new List < string > ( ) ;
29+
2830 private Dictionary < ulong , string > allGreatSkyIslandsChestContents = new Dictionary < ulong , string > ( ) ;
2931 private List < string > allChestContents = new List < string > ( ) ;
3032
@@ -242,6 +244,9 @@ private Byml ReplaceChest(Byml actor, string mapFile)
242244 }
243245
244246 string newDropActor = actor . GetHash ( ) [ "Dynamic" ] . GetHash ( ) [ "Drop__DropActor" ] . GetString ( ) ;
247+
248+ SpoilerLog . Add ( "0x" + hashValue . ToString ( "X" ) + " | " + newDropActor ) ;
249+
245250 if ( newDropActor . StartsWith ( "Weapon_" ) && ! newDropActor . Contains ( "_Bow_" ) )
246251 {
247252 AttachmentList . Shuffle ( ) ;
@@ -369,6 +374,7 @@ private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
369374 CopyFilesRecursively ( mapFilePath , finalPath ) ;
370375 }
371376
377+ SpoilerLog . Clear ( ) ;
372378 rstbModifiedTable . Clear ( ) ;
373379
374380 string resourceFolderPath = Path . Combine ( textBox1 . Text , "System" , "Resource" ) ;
@@ -529,6 +535,10 @@ private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
529535
530536 byte [ ] compressedRSTB = HashTable . CompressDataOther ( rstbFileData . ToBinary ( ) . ToArray ( ) ) ;
531537 File . WriteAllBytes ( rstbFile , compressedRSTB ) ;
538+
539+ // Spoiler Log
540+ string logPath = Path . Combine ( AppDomain . CurrentDomain . BaseDirectory , "romfs" , "spoiler_log.txt" ) ;
541+ File . WriteAllLines ( logPath , SpoilerLog ) ;
532542 }
533543
534544 private bool IsSkyIslandChest ( string mapFile )
0 commit comments