Skip to content

Commit

Permalink
Fix WJ/IBJ items not saving. (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
Miepee authored May 11, 2024
1 parent 7af336a commit e6cbb3f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions YAMS-LIB/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2113,6 +2113,8 @@ void RotateTextureAndSaveToTexturePage(int rotation, UndertaleTexturePageItem te
ds_list_add(list, global.lastOffworldNumber)
ds_list_add(list, global.collectedIndices)
ds_list_add(list, global.collectedItems)
ds_list_add(list, global.hasWJ)
ds_list_add(list, global.hasIBJ)
str_list = ds_list_write(list)
ds_list_clear(list)
return str_list;
Expand Down Expand Up @@ -2171,6 +2173,12 @@ void RotateTextureAndSaveToTexturePage(int rotation, UndertaleTexturePageItem te
global.collectedItems = readline();
if (global.collectedItems == undefined || global.collectedItems == 0)
global.collectedItems = "items:"
global.hasWJ = readline()
if (global.hasWJ == undefined)
global.hasWJ = 1
global.hasIBJ = readline()
if (global.hasIBJ == undefined)
global.hasIBJ = 1
ds_list_clear(list)
""");
gmData.Code.Add(loadGlobalsCode);
Expand Down

0 comments on commit e6cbb3f

Please sign in to comment.