GithubHelp home page GithubHelp logo

Comments (4)

Ruin0x11 avatar Ruin0x11 commented on August 17, 2024

As far as I understand, this was an intentional change. It was added sometime in the gap between 1.90 and 2.05, but I'm not exactly sure when.

Here is the relevant code:

if ( cdata(CDATA_PLATINUM, cc) > 0 ) {
if ( calcattackhit_arg1 == 0 ) {
evade += (limit(sdata(SKILL_NORMAL_MEMORIZATION, tc) / 5, 1, 100) + 10) * (cdata(CDATA_PLATINUM, cc) / 10 + 1)
if ( sorg(SKILL_NORMAL_MEMORIZATION, tc) > 0 ) {
skillexp SKILL_NORMAL_MEMORIZATION, tc, 4, 0, 1000
}
}
}

from elonapluscustom-gx.

Ruin0x11 avatar Ruin0x11 commented on August 17, 2024

So after reading over this a bit more, I think I understand what might have happened. It seems that Ano reused the cdata slot for the platinum count and shared it with the Analysis counter introduced in 1.995. This makes sense since a higher Analysis counter is supposed to increase evasion. I think the reuse was because there weren't any more cdata slots available and the platinum count on NPCs was unused before.

However, it seems like this is accidentally being applied to the player for some reason.

from elonapluscustom-gx.

firecat6666 avatar firecat6666 commented on August 17, 2024

Seems like a good way to fix this would be to add an extra condition to this function that checks the ID (offset 108 in cdata) of the attacking entity, if it's the player's ID then the entire thing is skipped. Only the player character can have platinum and no character can have an ID of 0 other than the player, except maybe in case of bugs, so I guess this should work fine 100% of the time.

from elonapluscustom-gx.

Ruin0x11 avatar Ruin0x11 commented on August 17, 2024

Should be fixed in 2.10.1.0.

from elonapluscustom-gx.

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.