add example usage

This commit is contained in:
2024-02-27 23:05:55 +00:00
parent bfc86df2e8
commit 85a4049267
3 changed files with 675 additions and 0 deletions

382
data.yaml Normal file
View File

@@ -0,0 +1,382 @@
Relics:
- CharacterName: Qinque
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: CRITRate
Feet:
stat: SPD
Sphere:
stat: QuantumDMG
Rope:
stat: ATK%
stats:
- SPD
- CRITRate
- CRITDMG
- ATK%
- CharacterName: Qinque
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: CRITDMG
Feet:
stat: SPD
Sphere:
stat: QuantumDMG
Rope:
stat: ATK%
stats:
- SPD
- CRITDMG
- CRITRate
- ATK%
- CharacterName: Sparkle
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: CRITRate
Feet:
stat: SPD
Sphere:
stat: HP%
Rope:
stat: EnergyRegenerationRate
stats:
- SPD
- CRITRate
- CRITDMG
- CharacterName: Sparkle
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: CRITDMG
Feet:
stat: SPD
Sphere:
stat: HP%
Rope:
stat: EnergyRegenerationRate
stats:
- SPD
- CRITDMG
- CRITRate
- CharacterName: Tinguin
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: ATK%
Feet:
stat: SPD
Sphere:
stat: ATK%
Rope:
stat: EnergyRegenerationRate
stats:
- SPD
- ATK%
- HP%
- DEF%
- EffectRes%
- CharacterName: Tinguin
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: HP%
Feet:
stat: SPD
Sphere:
stat: HP%
Rope:
stat: EnergyRegenerationRate
stats:
- SPD
- ATK%
- DEF%
- HP%
- EffectRes%
- CharacterName: Himeko
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: CRITRate
Feet:
stat: SPD
Sphere:
stat: FireDMG
Rope:
stat: ATK%
stats:
- SPD
- CRITRate
- CRITDMG
- ATK%
- CharacterName: Himeko
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: CRITDMG
Feet:
stat: ATK%
Sphere:
stat: ATK%
Rope:
stat: ATK%
stats:
- SPD
- CRITDMG
- CRITRate
- ATK%
- CharacterName: Dr Ratio
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: CRITRate
Feet:
stat: SPD
Sphere:
stat: ATK%
Rope:
stat: ATK%
stats:
- SPD
- CRITRate
- CRITDMG
- ATK%
- CharacterName: Dr Ratio
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: CRITDMG
Feet:
stat: SPD
Sphere:
stat: ImaginaryDMG
Rope:
stat: ATK%
stats:
- SPD
- CRITDMG
- CRITRate
- ATK%
- CharacterName: Guinafen
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: ATK%
Feet:
stat: SPD
Sphere:
stat: FireDMG
Rope:
stat: ATK%
stats:
- EffectHitRate
- SPD
- ATK%
- HP%
- CharacterName: Guinafen
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: EffectHitRate
Feet:
stat: SPD
Sphere:
stat: ATK%
Rope:
stat: ATK%
stats:
- SPD
- CRITDMG
- CRITRate
- DEF%
- CharacterName: Herta
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: CRITRate
Feet:
stat: SPD
Sphere:
stat: IceDMG
Rope:
stat: ATK%
stats:
- SPD
- CRITRate
- CRITDMG
- ATK%
- CharacterName: Herta
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: CRITDMG
Feet:
stat: ATK%
Sphere:
stat: ATK%
Rope:
stat: ATK%
stats:
- SPD
- CRITDMG
- CRITRate
- ATK%
- CharacterName: Kafka
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: ATK%
Feet:
stat: SPD
Sphere:
stat: LightningDMG
Rope:
stat: ATK%
stats:
- SPD
- EffectHitRate
- ATK%
- BreakEffect
- CharacterName: Kafka
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: CRITDMG
Feet:
stat: ATK%
Sphere:
stat: ATK%
Rope:
stat: ATK%
stats:
- SPD
- EffectHitRate
- ATK%
- BreakEffect
- CharacterName: Lynx
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: OutgoingHealing
Feet:
stat: SPD
Sphere:
stat: HP%
Rope:
stat: EnergyRegenerationRate
stats:
- SPD
- HP%
- EffectRes%
- DEF%
- CharacterName: Lynx
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: HP%
Feet:
stat: SPD
Sphere:
stat: HP%
Rope:
stat: EnergyRegenerationRate
stats:
- SPD
- HP%
- EffectRes%
- DEF%
- CharacterName: Ruan Mei
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: HP%
Feet:
stat: SPD
Sphere:
stat: HP%
Rope:
stat: EnergyRegenerationRate
stats:
- BreakEffect
- SPD
- HP%
- DEF%
- EffectRes%
- CharacterName: Ruan Mei
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: DEF%
Feet:
stat: SPD
Sphere:
stat: DEF%
Rope:
stat: BreakEffect
stats:
- BreakEffect
- SPD
- HP%
- DEF%
- EffectRes%

278
data_1.yaml Normal file
View File

@@ -0,0 +1,278 @@
Relics:
- CharacterName: Qinque
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: CRITRate
Feet:
stat: SPD
Sphere:
stat: QuantumDMG
Rope:
stat: ATK%
stats:
- SPD
- CRITRate
- CRITDMG
- ATK%
- CharacterName: Qinque
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: CRITDMG
Feet:
stat: SPD
Sphere:
stat: QuantumDMG
Rope:
stat: ATK%
stats:
- SPD
- CRITRate
- CRITDMG
- ATK%
- CharacterName: Sparkle
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: CRITRate
Feet:
stat: SPD
Sphere:
stat: HP%
Rope:
stat: EnergyRegenerationRate
stats:
- SPD
- CRITRate
- CRITDMG
- CharacterName: Sparkle
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: CRITDMG
Feet:
stat: SPD
Sphere:
stat: HP%
Rope:
stat: EnergyRegenerationRate
stats:
- SPD
- CRITRate
- CRITDMG
- CharacterName: Kafka
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: ATK%
Feet:
stat: SPD
Sphere:
stat: LightningDMG
Rope:
stat: ATK%
stats:
- SPD
- ATK%
- EffectHitRate
- CharacterName: Kafka
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: ATK%
Feet:
stat: ATK%
Sphere:
stat: ATK%
Rope:
stat: ATK%
stats:
- SPD
- ATK%
- EffectHitRate
- CharacterName: Black Swan
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: EffectHitRate
Feet:
stat: SPD
Sphere:
stat: WindDMG
Rope:
stat: ATK%
stats:
- SPD
- ATK%
- EffectHitRate
- CharacterName: Black Swan
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: ATK%
Feet:
stat: SPD
Sphere:
stat: ATK%
Rope:
stat: ATK%
stats:
- SPD
- ATK%
- EffectHitRate
- CharacterName: Ruan Mei
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: HP%
Feet:
stat: SPD
Sphere:
stat: HP%
Rope:
stat: BreakEffect
stats:
- SPD
- HP%
- DEF%
- BreakEffect
- CharacterName: Ruan Mei
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: DEF%
Feet:
stat: SPD
Sphere:
stat: DEF%
Rope:
stat: EnergyRegenerationRate
stats:
- SPD
- HP%
- DEF%
- BreakEffect
- CharacterName: Tingyun
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: HP%
Feet:
stat: SPD
Sphere:
stat: ATK%
Rope:
stat: EnergyRegenerationRate
stats:
- SPD
- ATK%
- EffectHitRate
- CharacterName: Herta
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: CRITDMG
Feet:
stat: SPD
Sphere:
stat: IceDMG
Rope:
stat: ATK%
stats:
- SPD
- CRITRate
- CRITDMG
- ATK%
- CharacterName: Herta
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: CRITRate
Feet:
stat: ATK%
Sphere:
stat: ATK%
Rope:
stat: ATK%
stats:
- SPD
- CRITRate
- CRITDMG
- ATK%
- CharacterName: Himeko
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: CRITDMG
Feet:
stat: SPD
Sphere:
stat: FireDMG
Rope:
stat: ATK%
stats:
- SPD
- CRITRate
- CRITDMG
- ATK%
- CharacterName: Himeko
Head:
stat: HP
Hands:
stat: ATK
Body:
stat: CRITRate
Feet:
stat: ATK%
Sphere:
stat: ATK%
Rope:
stat: ATK%
stats:
- SPD
- CRITRate
- CRITDMG
- ATK%

15
main.py Normal file
View File

@@ -0,0 +1,15 @@
from __future__ import annotations
from pathlib import Path
from star_rail_relic_trimmer.load import show_relics_to_keep
def main() -> None:
file = Path(__file__).parents[0] / "data.yaml"
show_relics_to_keep(file)
if __name__ == "__main__":
main()