From 04433cb42dabec40c7f32d77ac94804c533929f1 Mon Sep 17 00:00:00 2001 From: Miepee Date: Sun, 21 Jul 2024 19:22:42 +0200 Subject: [PATCH] Display seed hash on credits too Fixes #233 --- YAMS-LIB/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/YAMS-LIB/Program.cs b/YAMS-LIB/Program.cs index aa6f7c1..ddcd9a3 100644 --- a/YAMS-LIB/Program.cs +++ b/YAMS-LIB/Program.cs @@ -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) @@ -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");