bestiary

Module with structures to process data about the Bestiary in Terraria worlds, out of which the main one is Bestiary.

bestiary

Submodule containing Bestiary.

class lihzahrd.terraria.world.bestiary.bestiary.Bestiary(*args: Pack)

Bases: PackComposite

PackComposite to process everything that’s tracked by a Terraria world’s Bestiary.

kills: Field[Self, BestiaryKillsCollection]

Monster kill counts.

sightings: Field[Self, BestiarySightingsCollection]

Character sightings.

chatted_with: Field[Self, BestiaryChattedWithCollection]

NPCs spoken to.

bestiary_kills_collection

Submodule containing BestiaryKillsCollection.

class lihzahrd.terraria.world.bestiary.bestiary_kills_collection.BestiaryKillsCollection(items: list[Item])

Bases: PackCountArray

PackCountArray of the Bestiary counts of killed monsters.

ITEM

alias of BestiaryDictEntry

bestiary_sightings_collection

Submodule containing BestiarySightingsCollection.

class lihzahrd.terraria.world.bestiary.bestiary_sightings_collection.BestiarySightingsCollection(items: list[Item])

Bases: PackCountArray

PackCountArray of the Bestiary names of sighted characters.

ITEM

alias of PackStrVariable

bestiary_chatted_with_collection

Submodule containing BestiaryChattedWithCollection.

class lihzahrd.terraria.world.bestiary.bestiary_chatted_with_collection.BestiaryChattedWithCollection(items: list[Item])

Bases: PackCountArray

PackCountArray of the Bestiary counts of NPCs that were spoken to.

ITEM

alias of PackStrVariable

bestiary_dict_entry

Submodule containing BestiaryDictEntry.

class lihzahrd.terraria.world.bestiary.bestiary_dict_entry.BestiaryDictEntry(value: Value)

Bases: PackPrimitive[BestiaryDictData]

PackPrimitive to process a single BestiaryDictData.

ITEM

alias of BestiaryDictData

bestiary_dict_data

Submodule containing BestiaryDictData.

class lihzahrd.terraria.world.bestiary.bestiary_dict_data.BestiaryDictData(name: str, count: int)

Data about a stat tracked in the Bestiary.

name: str

The name of the tracked character.

count: int

The number of times the event has happened.