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.5.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for wynntilsresolver-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8a84143fe788f4b0d8fa68bae6930c3b40175d327ac896c85949ee0de5664ef |
|
MD5 | 4865e2087965d0eacd57001ea54c4253 |
|
BLAKE2b-256 | 7780edef94e9e1787f1e7f45c94fc43f11b4c8c0b831c10bea10cee99a9efdc5 |