Exemple #1
0
                    QUIVER="armour.quiver",
                    AMULET="accessory.amulet",
                    BELT="accessory.belt",
                    RING="accessory.ring",
                    BASE_JEWEL="jewel.base",
                    ABYSS_JEWEL="jewel.abyss",
                    CLUSTER_JEWEL="jewel.cluster")

output_str = ""
for item_class_name, item_class_str in item_classes.items():
    print(item_class_name)
    corrupted_implicits = find_affixes(OfficialApiQuery(
        category=item_class_str,
        quality_max=0,
        rarity="unique",
        talisman_tier_max=0,
        synthesised=False,
        corrupted=True,
        stat_filters=[triple_implicit_stat_filter]),
                                       affix_type="implicit")
    uncorrupted_implicits = find_affixes(OfficialApiQuery(
        category=item_class_str,
        quality_max=0,
        rarity="unique",
        talisman_tier_max=0,
        synthesised=False,
        corrupted=False),
                                         affix_type="implicit")
    output_str += item_class_name + "\n"
    for mod in corrupted_implicits.difference(uncorrupted_implicits):
        output_str += str(mod) + "\n"
Exemple #2
0
        "id": 49,
        "text": "+12% to Chaos Resistance"
    },
    {
        "id": 50,
        "text": "1% chance to Dodge Attack Hits"
    },
]

mods = find_affixes(
    OfficialApiQuery(
        stat_filters=[
            StatFilters(filters=[
                StatFilter("enchant.stat_3948993189", option=18),
                StatFilter("enchant.stat_3086156145"),
            ])
        ],
        mirrored=False,
        corrupted=False,
        rarity="nonunique",
    ),
    affix_type="explicit",
)

query = OfficialApiQuery(
    stat_filters=[
        StatFilters(filters=[
            StatFilter("enchant.stat_3948993189", option=18),
            StatFilter("enchant.stat_3086156145"),
        ]),
        StatFilters(
            filters=[
Exemple #3
0
    "Titanium Glennach Cairns Watchstone",
    "Titanium Haewark Hamlet Watchstone",
    "Titanium Lex Ejoris Watchstone",
    "Titanium Lex Proxima Watchstone",
    "Titanium Lira Arthain Watchstone",
    "Titanium New Vastir Watchstone",
    "Titanium Tirn's End Watchstone",
    "Titanium Valdo's Rest Watchstone",
]

t = tqdm(watchstones)
for type in t:
    t.set_description(desc=f"watchstone - {type}")

    mods = find_affixes(
        OfficialApiQuery(type=type, identified=True, rarity="nonunique"),
        affix_type="explicit",
    )
    all_query = OfficialApiQuery(
        type=type,
        # identified=True,
        rarity="nonunique",
        # mirrored=False,
        # enchanted=False,
        # corrupted=False,
        indexed="2weeks",
        stat_filters=[
            StatFilters(
                [
                    stat_filter for mod in mods
                    for stat_filter in mod.to_query_stat_filters()
                ],
Exemple #4
0
        ).json()

        results = await search_and_fetch_async(query)
        print(results_entry["mod_str"])
        for idx, result in enumerate(results):
            parsed_result = OfficialApiResult(result)
            results_entry[f"price_{idx:02}"] = estimate_price_in_chaos(
                parsed_result.price)

        global results_df
        results_df = results_df.append(results_entry, ignore_index=True)
        return results_entry

    mods = find_affixes(
        OfficialApiQuery(
            category=item_class_value,
            corrupted=False,
            synthesised=True,
            quality_max=0,
            rarity="nonunique",
        ),
        affix_type="implicit",
    )

    async def main():
        await asyncio.gather(
            *[search_and_fetch_and_price(mod) for mod in mods])
        results_df.to_csv(f"data/synth_prices/{item_class_key}.csv")

    asyncio.run(main())
Exemple #5
0
attr_mod = Mod({
    "name":
    "",
    "tier":
    "",
    "magnitudes": [{
        "hash": "explicit.stat_1379411836",
        "min": 25,
        "max": 30
    }],
})
mods = find_affixes(
    OfficialApiQuery(name="Forbidden Shako",
                     type="Great Crown",
                     identified=True),
    affix_type="explicit",
    exclude_affixes=[attr_mod],
    use_added_filter_for_speed=False,
)

for mod in tqdm(mods):
    results_entry = {"mod_str": str(mod), "mod_json": json.dumps(mod.json())}
    mod_stat_filters = StatFilters(filters=mod.to_query_stat_filters())
    fetch_ids, total, query = search_query(
        OfficialApiQuery(
            name="Forbidden Shako",
            type="Great Crown",
            identified=True,
            corrupted=False,
            enchanted=False,
            indexed="2week",
Exemple #6
0
    BELT="accessory.belt",
    RING="accessory.ring",
    BASE_JEWEL="jewel.base",
    ABYSS_JEWEL="jewel.abyss",
    CLUSTER_JEWEL="jewel.cluster",
)

t = tqdm(item_classes.items())
for item_class_key, item_class_value in t:
    t.set_description(desc=f"item_classes - {item_class_key}")

    mods = find_affixes(
        OfficialApiQuery(
            category=item_class_value,
            corrupted=False,
            fractured=True,
            quality_max=0,
            rarity="nonunique",
        ),
        affix_type="fractured",
    )

    queries = []
    for mod in mods:
        mod_stat_filters = StatFilters(filters=mod.to_query_stat_filters())
        query = OfficialApiQuery(
            category=item_class_value,
            corrupted=False,
            indexed="2week",
            mirrored=False,
            rarity="nonunique",
            stat_filters=[mod_stat_filters],
unique_watchstones = {
    "The Builder": "Platinum Glennach Cairns Watchstone",
    "The Walls": "Platinum Haewark Hamlet Watchstone",
    "Atop the Atlas": "Platinum Lex Ejoris Watchstone",
    "The Closest Peak": "Platinum Lex Proxima Watchstone",
    "The False Hope": "Platinum Lira Arthain Watchstone",
    "The Vast Horizon": "Platinum New Vastir Watchstone",
    "The Claim": "Platinum Tirn's End Watchstone",
    "Restless Cycles": "Platinum Valdo's Rest Watchstone",
}
for name, type in unique_watchstones.items():
    print(name, type)
    mods = find_affixes(
        OfficialApiQuery(name=name, type=type, identified=True),
        affix_type="explicit",
        exclude_affixes=[remaining_use_mod],
    )
    for mod in mods:
        print(mod, mod.json())
    for mod in tqdm(mods):
        results_entry = {
            "mod_str": str(mod),
            "mod_json": json.dumps(mod.json())
        }
        mod_stat_filters = StatFilters(filters=mod.to_query_stat_filters())
        fetch_ids, total, query = search_query(
            OfficialApiQuery(
                name=name,
                type=type,
                identified=True,