Skip to content

Commit

Permalink
Merge pull request #182 from EternalWraith/v0.11
Browse files Browse the repository at this point in the history
Fixed cloning of cloned pals. Weird bug
  • Loading branch information
EternalWraith authored Dec 27, 2024
2 parents 3742bb2 + 2aeb25e commit 1dc66d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion palworld_pal_edit/PalEdit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ def clonepal(self):
print("Player Pal Storage is full!")
return
print(playerguid)
pal.InitializationPal(newguid, '00000000-0000-0000-0000-000000000000', groupguid, slotguid)
pal.InitializationPal(newguid, playerguid, groupguid, slotguid)
pal.SetSoltIndex(i)
self.palguidmanager.AddGroupSaveData(groupguid, newguid)
self.palguidmanager.SetContainerSave(slotguid, i, newguid)
Expand Down
2 changes: 1 addition & 1 deletion palworld_pal_edit/PalInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ def GetLearntMoves(self):
return self._learntMoves

def InitializationPal(self, newguid, player, group, slot):
self._data['key']['PlayerUId']['value'] = player
self._data['key']['PlayerUId']['value'] = "00000000-0000-0000-0000-000000000000"
self._obj["OwnerPlayerUId"]['value'] = player
self._obj["OldOwnerPlayerUIds"]['value']['values'] = [player]
self.SetPalInstanceGuid(newguid)
Expand Down

0 comments on commit 1dc66d2

Please sign in to comment.