Skip to content

Commit

Permalink
Rearranged some UI elements. Added suitability display. Added moveset…
Browse files Browse the repository at this point in the history
…, scaling and suitabilities to tower bosses
  • Loading branch information
EternalWraith committed Feb 26, 2024
1 parent 91bf186 commit daaa93b
Show file tree
Hide file tree
Showing 29 changed files with 2,312 additions and 143 deletions.
326 changes: 187 additions & 139 deletions palworld_pal_edit/PalEdit.py

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions palworld_pal_edit/PalInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class PalGender(Enum):


class PalObject:
def __init__(self, name, code_name, primary, secondary="None", human=False, tower=False, scaling=None):
def __init__(self, name, code_name, primary, secondary="None", human=False, tower=False, scaling=None, suits={}):
self._name = name
self._code_name = code_name
self._img = None
Expand All @@ -88,6 +88,7 @@ def __init__(self, name, code_name, primary, secondary="None", human=False, towe
self._human = human
self._tower = tower
self._scaling = scaling
self._suits = suits

def GetName(self):
return self._name
Expand Down Expand Up @@ -819,8 +820,12 @@ def LoadPals(lang=None):
if len(i["Type"]) == 2:
s = i["Type"][1]
PalSpecies[i["CodeName"]] = PalObject(i["Name"], i["CodeName"], p, s, h, t,
i["Scaling"] if "Scaling" in i else None)
PalLearnSet[i["CodeName"]] = i["Moveset"]
i["Scaling"] if "Scaling" in i else None,
i["Suitabilities"] if "Suitabilities" in i else {})
if t:
PalSpecies[i["CodeName"]]._suits = PalSpecies[i["CodeName"].replace("GYM_", "")]._suits
PalSpecies[i["CodeName"]]._scaling = PalSpecies[i["CodeName"].replace("GYM_", "")]._scaling
PalLearnSet[i["CodeName"]] = i["Moveset"] if not t else PalLearnSet[i["CodeName"].replace("GYM_", "")]


LoadPals()
Expand Down
Loading

0 comments on commit daaa93b

Please sign in to comment.