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

Added forgotten header data.

This commit is contained in:
Dale Floer 2020-05-29 23:54:56 -07:00
parent 304b279c6a
commit f2ec33d0c6

View file

@ -57,6 +57,8 @@ class World:
weighed_pressure_plates: typing.List[WeighedPressurePlate], weighed_pressure_plates: typing.List[WeighedPressurePlate],
rooms: typing.List[Room], rooms: typing.List[Room],
pets: Pets, pets: Pets,
halloween_today: bool,
xmas_today: bool,
treetop_variants: TreetopVariants, treetop_variants: TreetopVariants,
saved_ore_tiers: SavedNPCs, saved_ore_tiers: SavedNPCs,
unknown_file_format_data: bytes = b"", unknown_file_format_data: bytes = b"",
@ -183,6 +185,12 @@ class World:
self.pets: Pets = pets self.pets: Pets = pets
"""Which pets have bene purchased.""" """Which pets have bene purchased."""
self.halloween_today: bool = halloween_today
"""Is today an halloween reward day?"""
self.xmas_today: bool = xmas_today
"""Is today an xmas reward day?"""
self.treetop_variants: TreetopVariants = treetop_variants self.treetop_variants: TreetopVariants = treetop_variants
"""Treetops variants that can exist in the world.""" """Treetops variants that can exist in the world."""
@ -566,6 +574,9 @@ class World:
treetop_variant_count = f.int4() treetop_variant_count = f.int4()
treetop_variants = TreetopVariants([f.int4() for _ in range(treetop_variant_count)]) treetop_variants = TreetopVariants([f.int4() for _ in range(treetop_variant_count)])
halloween_today = f.bool()
xmas_today = f.bool()
saved_ore_tiers = SavedOreTiers(f.int4(), f.int4(), f.int4(), f.int4()) saved_ore_tiers = SavedOreTiers(f.int4(), f.int4(), f.int4(), f.int4())
pets = Pets(f.bool(), f.bool(), f.bool()) pets = Pets(f.bool(), f.bool(), f.bool())
@ -738,6 +749,7 @@ class World:
clouds=clouds, cultist_delay=cultist_delay, tiles=tm, chests=chests, signs=signs, clouds=clouds, cultist_delay=cultist_delay, tiles=tm, chests=chests, signs=signs,
npcs=npcs, mobs=mobs, tile_entities=tile_entities, npcs=npcs, mobs=mobs, tile_entities=tile_entities,
weighed_pressure_plates=weighed_pressure_plates, rooms=rooms, weighed_pressure_plates=weighed_pressure_plates, rooms=rooms,
halloween_today=halloween_today, xmas_today=xmas_today,
treetop_variants=treetop_variants, saved_ore_tiers=saved_ore_tiers, pets=pets, treetop_variants=treetop_variants, saved_ore_tiers=saved_ore_tiers, pets=pets,
unknown_file_format_data=unknown_file_format_data, unknown_file_format_data=unknown_file_format_data,
unknown_world_header_data=unknown_world_header_data, unknown_world_header_data=unknown_world_header_data,