Genshin Gacha Models
gacha
Genshin wish models.
Classes:
-
BannerDetailItem–Item that may be gotten from a banner.
-
BannerDetails–Details of a banner.
-
BannerDetailsUpItem–Item that has a rate-up on a banner.
-
GachaItem–Item that can be gotten from the gacha.
-
GenshinBannerType–Banner types in wish histories.
-
MWBannerType–Banner types in Genshin Miliastra Wonderland.
-
MWWish–Wish made on Genshin Miliastra Wonderland banner.
-
SignalSearch–Signal Search made on any banner.
-
StarRailBannerType–Banner types in wish histories.
-
Warp–Warp made on any banner.
-
Wish–Wish made on any banner.
-
ZZZBannerType–Banner types in wish histories.
__all__
module-attribute
__all__ = ['BannerDetailItem', 'BannerDetails', 'BannerDetailsUpItem', 'GachaItem', 'GenshinBannerType', 'MWBannerType', 'MWWish', 'SignalSearch', 'StarRailBannerType', 'Warp', 'Wish', 'ZZZBannerType']
BannerDetailItem
pydantic-model
BannerDetails
pydantic-model
Details of a banner.
Fields:
-
banner_id(str) -
banner_type(int) -
title(str) -
content(str) -
date_range(str) -
r5_up_prob(Optional[float]) -
r4_up_prob(Optional[float]) -
r5_prob(Optional[float]) -
r4_prob(Optional[float]) -
r3_prob(Optional[float]) -
r5_guarantee_prob(Optional[float]) -
r4_guarantee_prob(Optional[float]) -
r3_guarantee_prob(Optional[float]) -
r5_up_items(Sequence[BannerDetailsUpItem]) -
r4_up_items(Sequence[BannerDetailsUpItem]) -
r5_items(list[BannerDetailItem]) -
r4_items(list[BannerDetailItem]) -
r3_items(list[BannerDetailItem])
Validators:
-
__replace_none→r5_up_items,r4_up_items -
__parse_percentage→r5_up_prob,r4_up_prob,r5_prob,r4_prob,r3_prob,r5_guarantee_prob,r4_guarantee_prob,r3_guarantee_prob
BannerDetailsUpItem
pydantic-model
Item that has a rate-up on a banner.
Fields:
Validators:
BaseWish
pydantic-model
Base wish model.
Fields:
Validators:
GachaItem
pydantic-model
Item that can be gotten from the gacha.
Fields:
Validators:
GenshinBannerType
Banner types in wish histories.
Attributes:
-
CHARACTER–Rotating character banner.
-
CHARACTER1–Character banner #1.
-
CHARACTER2–Character banner #2.
-
CHRONICLED–Chronicled banner.
-
NOVICE–Temporary novice banner.
-
PERMANENT–Permanent standard banner.
-
STANDARD–Permanent standard banner.
-
WEAPON–Rotating weapon banner.
MWBannerType
Banner types in Genshin Miliastra Wonderland.
Attributes:
-
EVENT–Event banner.
-
EVENT_FEMALE_OUTFIT1–Female Manekin outfit banner #1.
-
EVENT_FEMALE_OUTFIT2–Female Manekin outfit banner #2.
-
EVENT_MALE_OUTFIT1–Male Manekin outfit banner #1.
-
EVENT_MALE_OUTFIT2–Male Manekin outfit banner #2.
-
PERMANENT–Permanent standard banner.
-
STANDARD–Permanent standard banner.
EVENT_FEMALE_OUTFIT1
class-attribute
instance-attribute
Female Manekin outfit banner #1.
EVENT_FEMALE_OUTFIT2
class-attribute
instance-attribute
Female Manekin outfit banner #2.
EVENT_MALE_OUTFIT1
class-attribute
instance-attribute
Male Manekin outfit banner #1.
EVENT_MALE_OUTFIT2
class-attribute
instance-attribute
Male Manekin outfit banner #2.
MWWish
pydantic-model
SignalSearch
pydantic-model
Signal Search made on any banner.
Fields:
-
id(int) -
uid(int) -
name(str) -
rarity(int) -
tz_offset(int) -
time(datetime) -
item_id(int) -
type(str) -
banner_type(ZZZBannerType)
Validators:
from_chronicle_data
classmethod
from_chronicle_data(data: Mapping[str, Any], uid: int, tz_offset: int, banner_type: ZZZBannerType) -> SignalSearch
Create a ZZZChronicleWish from chronicle data.
StarRailBannerType
Banner types in wish histories.
Attributes:
-
CHARACTER–Rotating character banner.
-
FATE_CHARACTER–FGO collab character banner.
-
FATE_WEAPON–FGO collab light cone banner.
-
NOVICE–Temporary novice banner.
-
PERMANENT–Permanent standard banner.
-
STANDARD–Permanent standard banner.
-
WEAPON–Rotating light cone banner.
Warp
pydantic-model
Wish
pydantic-model
ZZZBannerType
Banner types in wish histories.
Methods:
-
to_chronicle_type–Get the chronicle type string for this banner type.
Attributes:
-
BANGBOO–Bangboo banner.
-
CHARACTER–Rotating character banner.
-
EXCLUSIVE_RESCREENING–Exclusive rescreening banner.
-
PERMANENT–Permanent standard banner.
-
REVERBERATION–W-Engine reverberation banner.
-
STANDARD–Permanent standard banner.
-
WEAPON–Rotating w-engine banner.
EXCLUSIVE_RESCREENING
class-attribute
instance-attribute
Exclusive rescreening banner.