Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Pydantic for profile validation #199

Merged
merged 4 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
301 changes: 191 additions & 110 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion config/params.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[general]
; Which filter profiles should be run. All .yaml files with "Aspects" and "Affixes" sections will be used from
; config/profiles/*.yaml and C:/Users/USERNAME/.d4lf/profiles/*.yaml
profiles=general,barb,druid,necro,rogue,sorc,uniques,sigils
profiles=example
; Whether to run vision mode on startup or not
run_vision_mode_on_startup=True
; Which tabs to check. Note: All 6 Tabs must be unlocked!
Expand Down
85 changes: 0 additions & 85 deletions config/profiles/barb.yaml

This file was deleted.

80 changes: 0 additions & 80 deletions config/profiles/druid.yaml

This file was deleted.

88 changes: 88 additions & 0 deletions config/profiles/example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
Aspects:
- [ accelerating, 25 ]
- [ of_disobedience, 1.1 ]
- of_might

Affixes:
- AwesomeHelm:
itemType: helm
minPower: 725
affixPool:
- count:
- [ basic_skill_attack_speed, 6 ]
- [ cooldown_reduction, 5 ]
- [ maximum_life, 640 ]
- [ total_armor, 9 ]
minCount: 3

- AwesomeGloves:
itemType: gloves
minPower: 725
affixPool:
- count:
- [ attack_speed, 7 ]
- [ lucky_hit_chance, 7.8 ]
- [ critical_strike_chance, 5.5 ]

- AwesomeArmor:
itemType: [ chest armor, pants ]
minPower: 725
affixPool:
- count:
- [ damage_reduction_from_close_enemies, 10 ]
- [ damage_reduction_from_distant_enemies, 12 ]
- [ damage_reduction, 5 ]
- [ total_armor, 9 ]
- [ maximum_life, 700 ]
- [ dodge_chance_against_close_enemies, 6.5 ]
- [ dodge_chance, 5.0 ]
minCount: 3

- AwesomeBoots:
itemType: boots
minPower: 725
affixPool:
- count:
- [ movement_speed, 16 ]
- [ dodge_chance, 5 ]
- [ dodge_chance_against_distant_enemies, 7 ]
- [ energy_cost_reduction, 6 ]
minCount: 3

- AwesomeAmulet:
itemType: amulet
minPower: 725
affixPool:
- count:
- [ cooldown_reduction, 6 ]
- [ damage_reduction, 6 ]
- [ damage_reduction_from_close_enemies, 10 ]
- [ damage_reduction_from_distant_enemies, 12 ]
- [ total_armor, 9 ]
- [ energy_cost_reduction, 6 ]
- [ movement_speed ]
minCount: 3

- AwesomeRing:
itemType: ring
minPower: 725
affixPool:
- count:
- [ critical_strike_chance, 4 ]
- [ lucky_hit_chance, 5 ]
- [ resource_generation, 8 ]
- [ maximum_life, 680 ]
minCount: 3

Sigils:
minTier: 40
maxTier: 100
blacklist:
- endless_gates
- armor_breakers
- resistance_breakers

Uniques:
- aspect: [ banished_lords_talisman ]
- aspect: [ fists_of_fate ]
- aspect: [ ring_of_the_ravenous ]
95 changes: 0 additions & 95 deletions config/profiles/general.yaml

This file was deleted.

Loading
Loading