Skip to content

Commit

Permalink
Increase Pal Level Limit to 55
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisCris committed Jul 3, 2024
1 parent dcf6f4f commit 1cbda2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/palworld-pal-editor-webui/src/stores/paleditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ export const usePalEditorStore = defineStore("paleditor", () => {
}

levelUp() {
if (this.Level < 50) {
if (this.Level < 55) {
this.Level += 1;
updatePal({ target: { name: "Level", value: this.Level } });
}
}

maxLevel() {
this.Level = 50;
this.Level = 55;
updatePal({ target: { name: "Level", value: this.Level } });
}

Expand Down
2 changes: 1 addition & 1 deletion src/palworld_pal_editor/core/pal_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def Level(self) -> Optional[int]:
@LOGGER.change_logger('Level')
@type_guard
def Level(self, value: int) -> None:
value = clamp(1, 50, value)
value = clamp(1, 55, value)
if self.Level is None:
self._pal_param["Level"] = PalObjects.IntProperty(value)
else:
Expand Down

0 comments on commit 1cbda2d

Please sign in to comment.