Skip to content

Legacy

This page contains content from the old GitHub wiki.

Genshin Impact

Namecards and icons

Available after v1.2.0

Character icons are now Icon objects, you can access all types of icons from it:

The same goes for ShowcaseCharacter.costume_icon and Player.profile_picture_icon.

Namecards are now Namecard objects:

Stats

Available after v1.4.0

Stats refer to character, weapon, and artifact stats.
Internally, stats for characters are FightProp classes, while the others are Stat classes; they can be accessed in the same way, but their types are different (FightPropType and StatType).
For your convenience, there are stat.is_percentage and stat.formatted_value to use, for exmple:

  • If stat.type is StatType.FIGHT_PROP_CUR_ATTACK
  • stat.is_percentage = False
  • stat.formatted_value = '2300'
  • If stat.type is StatType.FIGHT_PROP_CRITICAL
  • stat.is_percentage = True
  • stat.formatted_value = '23.1%'

Constellations

Available after v1.7.0

After v1.7.0, all constellations that belong to a character will appear in Character.constellations, the Constellation.unlocked attribute will indicate whether the constellation is unlocked. Also, there is a new attribute Character.constellations_unlocked that indicates how many constellations the character has unlocked.