1
Fork 0
mirror of https://github.com/Steffo99/lihzahrd.git synced 2024-11-24 17:14:22 +00:00

Add fish 39 and 40 to anglerquestfish.py

The AnglerFishQuest tag can take a new value (40).

Currently, lihazahrd.World() crashes when trying to load a world with this value.

I verified ingame that a value of 40 corresponds to the Scorpio Fish.
This commit adds a value to the AnglerQuestFish enum for this new option.
It also adds a label for fish 39 (the Scarab Fish), which was previously unknown.

For backwards compatibility, I left the old name (UNKNOWN1) as-is.
This commit is contained in:
Kattusite 2023-10-16 02:40:36 -07:00 committed by Stefano Pigozzi
parent 2bd6f5b845
commit 3e1ce48a7b

View file

@ -43,7 +43,11 @@ class AnglerQuestFish(enum.IntEnum):
TROPICAL_BARRACUDA = 38 TROPICAL_BARRACUDA = 38
# none of the other tools know what fish this is ... *shrug* # none of the other tools know what fish this is ... *shrug*
# we now know it's a SCARAB_FISH; UNKNOWN1 remains for back-compatibility.
UNKNOWN1 = 39 UNKNOWN1 = 39
SCARAB_FISH = 39
SCORPIO_FISH = 40
def __repr__(self): def __repr__(self):
return f"{self.__class__.__name__}.{self.name}" return f"{self.__class__.__name__}.{self.name}"