A simple resolver to analyze wynntils' encoded equipment in chat.
Project description
Wynntils Resolver
A simple resolver to anaslyeze wynntils' coded equipment in chat.
Built on
Install
pip install wynntilsresolver
Usage
Use as a package
from wynntilsresolver import resolver
print(resolver.decode("Warp"))
# Item(name='Warp', ids=[232, 308, 100, 32, 100, 132, 357, 0, 204], powders=[AIR, AIR, AIR], rerolls=4)
print(resolver.decode_to_json("Warp"))
# {'name': 'Warp', 'ids': [232, 308, 100, 32, 100, 132, 357, 0, 204], 'powders': ['AIR', 'AIR', 'AIR'], 'rerolls': 4}
The calculation of the true roll value will rely on the identifications differ between the items. Please calculate using the following algorithm:
if baseValue > 100:
trueRoll = ((id/4 + 30) / 100) * baseValue
else:
trueRoll = idRange.low + id/4
Or initialite with your own match pattern
import re
from wynntilsresolver import Resolver
resolver = Resolver(pattern=re.compile(...))
Use the cli
This will defaulted decode the item into json format
pip install wynntilsresolver[cli]
python -m wynntilsresolver Warp
# In some terminal environment, you are not able to input some of the unicode string and will result in an ItemNotValidError
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wynntilsresolver-0.1.6.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for wynntilsresolver-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | deb65ccb956dafe98dfe0ff916e98a221ec866310385b4f2842a934ad2a47dd7 |
|
MD5 | 106768a1e5f6d74c192afaca5323e2c2 |
|
BLAKE2b-256 | e1ce000062a88971efeba45b7329379d5001feecf15b2951ad4eb2c27be7ce59 |