From a40234db7772b9bbf41c63e64590a4d8df0fc70c Mon Sep 17 00:00:00 2001 From: trumully Date: Wed, 17 Apr 2024 15:22:27 +1200 Subject: [PATCH] chore: edit README.md and example.py to reflect ArtifactSet type --- README.md | 8 ++++---- example.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5005e00..bc10f75 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ For a broader exploration of the usage of the package be sure to checkout the [d Here we use the [`ArtifactBuilder`](https://trumully.github.io/artipy/artipy.artifacts.html#artipy.artifacts.ArtifactBuilder) class to create an [`Artifact`](https://trumully.github.io/artipy/artipy.artifacts.html#artipy.artifacts.ArtifactBuilder). ```python -from artipy.artifacts import ArtifactBuilder, ArtifactSlot +from artipy.artifacts import ArtifactBuilder, ArtifactSlot, ArtifactSet from artipy.stats import StatType @@ -97,8 +97,8 @@ def main() -> None: (StatType.HP_PERCENT, 0.053), (StatType.HP, 568) ]) - .with_set("Gladiator's Finale") .with_slot(ArtifactSlot.SANDS) + .with_set(ArtifactSet.GLADIATORS_FINALE) .build() ) print(artifact) @@ -164,7 +164,7 @@ ATK+30.8% Firstly we'll need to import the `artipy.analysis` package to get started. ```python import artipy.analysis as analysis -from artipy.artifacts import ArtifactBuilder, ArtifactSlot +from artipy.artifacts import ArtifactBuilder, ArtifactSlot, ArtifactSet from artipy.stats import StatType @@ -218,7 +218,7 @@ To start plotting let's go ahead and import the `artipy.analysis.plots` sub-pack ```python import artipy.analysis as analysis from artipy.analysis import plots -from artipy.artifacts import ArtifactBuilder, ArtifactSlot +from artipy.artifacts import ArtifactBuilder, ArtifactSlot, ArtifactSet from artipy.stats import StatType diff --git a/example.py b/example.py index ad33ff6..cefd9aa 100644 --- a/example.py +++ b/example.py @@ -3,7 +3,7 @@ import artipy.analysis as analysis from artipy.analysis import plots from artipy.artifacts import ArtifactBuilder -from artipy.types import ArtifactSlot, StatType +from artipy.types import ArtifactSet, ArtifactSlot, StatType def main() -> None: @@ -18,8 +18,8 @@ def main() -> None: (StatType.HP_PERCENT, 0.053), (StatType.HP, 568), ]) - .with_set("Gladiator's Finale") .with_slot(ArtifactSlot.SANDS) + .with_set(ArtifactSet.GLADIATORS_FINALE) .build() )