Skip to content

Commit

Permalink
Display seed hash on credits too
Browse files Browse the repository at this point in the history
Fixes #233
  • Loading branch information
Miepee committed Jul 21, 2024
1 parent a46f735 commit 04433cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion YAMS-LIB/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ public static void Main(string am2rPath, string outputAm2rPath, string jsonPath)
// Set fusion mode value
gmData.Code.ByName("gml_Object_oControl_Step_0").ReplaceGMLInCode("mod_fusion = 0", $"mod_fusion = {(seedObject.Patches.FusionMode ? 1 : 0)}");

// Display Seed hash
// Display Seed hash on title and credits
gmData.Code.ByName("gml_Object_oGameSelMenu_Draw_0").AppendGMLInCode($"""
draw_set_font(global.fontGUI2)
draw_set_halign(fa_center)
Expand All @@ -589,6 +589,8 @@ public static void Main(string am2rPath, string outputAm2rPath, string jsonPath)
draw_set_halign(fa_left)
""");

gmData.Code.ByName("gml_Object_oScoreScreen_Draw_0").ReplaceGMLInCode("draw_text(tx1x, (tx1y + 52), text2a)", $"draw_text(tx1x, (tx1y + 52), text2a); draw_text(tx1x, (tx1y + 80), \"{seedObject.Identifier.RDVVersion}\"); draw_text(tx1x, (tx1y + 92), \"{seedObject.Identifier.WordHash} ({seedObject.Identifier.Hash})\")");

// Set option on whether supers can destroy missile doors
if (seedObject.Patches.CanUseSupersOnMissileDoors) characterVarsCode.ReplaceGMLInCode("global.canUseSupersOnMissileDoors = 0", "global.canUseSupersOnMissileDoors = 1");

Expand Down

0 comments on commit 04433cb

Please sign in to comment.