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.6.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

wynntilsresolver-0.1.6-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file wynntilsresolver-0.1.6.tar.gz.

File metadata

  • Download URL: wynntilsresolver-0.1.6.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.5.5 CPython/3.10.9

File hashes

Hashes for wynntilsresolver-0.1.6.tar.gz
Algorithm Hash digest
SHA256 9a823c292e81038974c399c0594883bda134ca67b8e75ff8e0af5d9c1831b4a5
MD5 dba958b41325f7114e341dead468617b
BLAKE2b-256 e34c6216a25ee8ce10c97c7048ccb846d31827d68da9f8c6cbd0d7b3a2d2575f

See more details on using hashes here.

Provenance

File details

Details for the file wynntilsresolver-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for wynntilsresolver-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 deb65ccb956dafe98dfe0ff916e98a221ec866310385b4f2842a934ad2a47dd7
MD5 106768a1e5f6d74c192afaca5323e2c2
BLAKE2b-256 e1ce000062a88971efeba45b7329379d5001feecf15b2951ad4eb2c27be7ce59

See more details on using hashes here.

Provenance

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