Skip to content

Commit

Permalink
Simplify long range activation
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffGainsNGames committed Oct 27, 2023
1 parent ba4967e commit e271e39
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions YAMS-LIB/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1914,8 +1914,7 @@ void RotateTextureAndSaveToTexturePage(int rotation, UndertaleTexturePageItem te
AppendGMLInCode(gmData.Code.ByName("gml_Object_oGravityPod_Create_0"), "closed = 1; xoff = 0;");

// Always enable long range activation, for consistent zips
foreach (var room in gmData.Rooms.Where(r => r.Name.Content.StartsWith("rm_a")))
AppendGMLInCode(room.CreationCodeId, "global.objdeactivate = 0");
ReplaceGMLInCode(gmData.Code.ByName("gml_Object_oCharacter_Step_1"), "global.objdeactivate", "false");

AppendGMLInCode(gmData.Code.ByName("gml_Script_start_new_game"), "global.targetx = global.save_x; global.targetx = global.save_y;");

Expand Down

0 comments on commit e271e39

Please sign in to comment.