Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
chore: edit README.md and example.py to reflect ArtifactSet type
Browse files Browse the repository at this point in the history
  • Loading branch information
trumully committed Apr 17, 2024
1 parent 0948acb commit a40234d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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)
Expand Down Expand Up @@ -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


Expand Down Expand Up @@ -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


Expand Down
4 changes: 2 additions & 2 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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()
)

Expand Down

0 comments on commit a40234d

Please sign in to comment.