Skip to main content

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

Python 3.8

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


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)

Uploaded Source

Built Distribution

wynntilsresolver-0.1.5-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page