Git Product home page Git Product logo

Comments (8)

Eruyome avatar Eruyome commented on September 27, 2024

GetNegativeAffixOffset() returns 2 instead of 1.

If (Item.IsFlask or Item.IsUnique or Item.IsTalisman) should only trigger this condition, but also triggers If (Item.IsCorrupted) because the flavor text contains "corrupted"

from poe-iteminfo.

aRTy42 avatar aRTy42 commented on September 27, 2024

You beat me to it by a few minutes. I found the wrong negativeOffset and was looking which part caused it.

from poe-iteminfo.

Eruyome avatar Eruyome commented on September 27, 2024

I can fix that, just needs something better than

 IfInString, ItemDataText, Corrupted
    {
        Item.IsCorrupted := True
    }

from poe-iteminfo.

aRTy42 avatar aRTy42 commented on September 27, 2024

The check for mirrored and effects are both horribly insecure aswell:

ItemIsMirrored(ItemDataText)
{
    Loop, Parse, ItemDataText, `n, `r
    {
        If (A_LoopField == "Mirrored")
        {
            return True
        }
    }
    return False
}
Item.HasEffect := (InStr(ItemData.PartsLast, "Has"))

Do you want to look into it or should I look for better solutions?

from poe-iteminfo.

Eruyome avatar Eruyome commented on September 27, 2024

I believe I fixed all checks, just trying to find a mirrored item to test that

from poe-iteminfo.

Eruyome avatar Eruyome commented on September 27, 2024

#14

Fixed and closed.

from poe-iteminfo.

aRTy42 avatar aRTy42 commented on September 27, 2024

I also noted that the ItemSubType is not reliable for uniques. The info script does not care, because the unique data displayed is based on the name, but for your script it might have consequences. For example the body armour "The Rat Cage" gets classified as a helmet because the name with "Cage" comes before the base type line "Sharkskin Tunic". If that is a problem, the solution is likely to narrow down the ItemDataNamePlate lines even more for uniques or items in general, before the whole regex match section starts.

from poe-iteminfo.

Eruyome avatar Eruyome commented on September 27, 2024

Ok, I will look into that. But for now we only care about the item name if it's a unique, since the name is, well, unique and we don't want other results. But also adding the subtype can't hurt.

from poe-iteminfo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.