journey¶
Module with structures to process data about Journey Mode powers, out of which the main one is JourneySettingsCollection.
journey_settings_collection¶
Submodule containing JourneySettingsCollection.
- class lihzahrd.terraria.world.journey.journey_settings_collection.JourneySettingsCollection(items: list[Item])¶
Bases:
PackFlagArray[JourneySetting]PackFlagArraywhich groups each possible Journey Mode setting.- ITEM¶
alias of
JourneySetting
journey_setting¶
Submodule containing JourneySetting.
- class lihzahrd.terraria.world.journey.journey_setting.JourneySetting(value: Value)¶
Bases:
PackPrimitive[JourneySettingData]lihzahrd.terraria.utils.pack.primitive.primitive.PackPrimitiveprocessing a single Journey Mode setting.- exception ReadUnknownJourneySettingError(kind: int)¶
Bases:
ReadErrorThe tile entity could not be read because its kind is unknown.
If this happens, there’s no way to determine how the journey setting should be read, and so no way to determine which data belongs to it and which to a different one, so reading cannot continue.
- exception WriteUnknownJourneySettingError(data: JourneySettingData)¶
Bases:
WriteErrorThe tile entity could not be written because its kind is unknown.
If this happens, there’s no way to determine how the journey setting should be written, and so no way to determine which data belongs to it and which to a different one, so reading cannot continue.
- data: JourneySettingData¶
The data of the unknown Journey setting.
journey_setting_data¶
Submodule containing JourneySettingData.
- class lihzahrd.terraria.world.journey.journey_setting_data.JourneySettingData¶
Base class for Journey setting data.
Todo
Like with
lihzahrd.terraria.world.tile_entities.tile_entity_data.TileEntityData.extra, a better, more extensible way to implement this would be via a ClassEnum and inheritance, as that would allow new kinds of journey settings to be registered without having to editlihzahrd.
time_frozen_data¶
Submodule containing TimeFrozenData.
time_scale_data¶
Submodule containing TimeScaleData.
rain_frozen_data¶
Submodule containing RainFrozenData.
wind_frozen_data¶
Submodule containing WindFrozenData.
journey_difficulty_data¶
Submodule containing JourneyDifficultyData.
spread_frozen_data¶
Submodule containing SpreadFrozenData.