Skip to content

Commit

Permalink
Show starting items in history log
Browse files Browse the repository at this point in the history
fixes #229
  • Loading branch information
Miepee committed Jul 19, 2024
1 parent 4d6a2b1 commit 088ab06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YAMS-LIB/patches/HistoryLogEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static void Apply(UndertaleData gmData, GlobalDecompileContext decompileC
gmData.Code.ByName("gml_Object_oControl_Create_0").AppendGMLInCode(DSMapCoordRoomname);

UndertaleCode? characterVarsCode = gmData.Code.ByName("gml_Script_load_character_vars");
characterVarsCode.PrependGMLInCode("global.historyLogEntryText = \"\"");
characterVarsCode.PrependGMLInCode($"global.historyLogEntryText = \"{(seedObject.Identifier.StartingMemoText is null ? "" : seedObject.Identifier.StartingMemoText.Description + " as extra starting items.#")}\"");
gmData.Code.ByName("gml_Object_oItem_Other_10").ReplaceGMLInCode("instance_destroy()", "var roomName = ds_map_find_value(oControl.roomNameDict, room_get_name(room)); if (roomName == undefined) roomName = \"ERROR!!!\"; global.historyLogEntryText = (\"{yellow}\" + string(itemName) + \"{white} was found in {fuchsia}\" + roomName + \"{white}#\") + global.historyLogEntryText; instance_destroy();");

gmData.Code.ByName("gml_Script_load_logs_list").ReplaceGMLInCode("get_text(\"Logs\", \"Briefing\")", "\"Item History\"");
Expand Down

0 comments on commit 088ab06

Please sign in to comment.