Giter VIP home page Giter VIP logo

Comments (6)

Ezzz-dev avatar Ezzz-dev commented on August 14, 2024 1

Fixed, I forgot to use the weapon's skill type within the getDefense function, meaning that players would have defense skill = 2 when using a giant sword (the skill type).

https://github.com/TwistedScorpio/Nostalrius/commit/000460265cdc954b09b62378644869f355cbd862

from nostalrius.

emil92b avatar emil92b commented on August 14, 2024

shouldn't fightmode_balance be in this statement?

int32_t Player::getDefense()
if (attackMode == FIGHTMODE_ATTACK) { totalDefense -= 4 * totalDefense / 10; } else if (attackMode == FIGHTMODE_DEFENSE) { totalDefense += 8 * totalDefense / 10; }

from nostalrius.

emil92b avatar emil92b commented on August 14, 2024

also what about blocking 1 monster for weapon, and 2 if have shield

from nostalrius.

Ezzz-dev avatar Ezzz-dev commented on August 14, 2024

shouldn't fightmode_balance be in this statement?

int32_t Player::getDefense()
if (attackMode == FIGHTMODE_ATTACK) { totalDefense -= 4 * totalDefense / 10; } else if (attackMode == FIGHTMODE_DEFENSE) { totalDefense += 8 * totalDefense / 10; }

No, balance fightmode makes no changes to the total defense or total attack of a player, only the others two do.

also what about blocking 1 monster for weapon, and 2 if have shield

This is already working and is accurate, this was the only issue by wielding two handed weapons the player skill used in the formulas was less than 10 hence why you kept getting ridiculous damage, if you find any other issues related, please, let me know.

from nostalrius.

emil92b avatar emil92b commented on August 14, 2024

also i did some tests again with full rare set on
43 shielding (full def) a monk hits for around 66
100 shielding (full def) a monk hits for around 70

from nostalrius.

goesraphael avatar goesraphael commented on August 14, 2024

Broken Link

Fixed, I forgot to use the weapon's skill type within the getDefense function, meaning that players would have defense skill = 2 when using a giant sword (the skill type).

https://github.com/TwistedScorpio/Nostalrius/commit/000460265cdc954b09b62378644869f355cbd862

from nostalrius.

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.