Git Product home page Git Product logo

Comments (2)

FelipeRenault avatar FelipeRenault commented on August 14, 2024

I can kinda hack the modifier being on off-hand attack rolls, but it will use the same ability modifier of the main hand weapon (which is almost always fine - it's very rare for someone to use a finesse and non-finesse weapon at the same time). I'll try to include the negative modifier damage and see how it goes

Thanks for the suggestion for topic 3. If you want to open a pull request for that, feel free to do so. If you don't want, I'll test it out soon(ish)

from raw.

FelipeRenault avatar FelipeRenault commented on August 14, 2024

The fix assumes the player is using either two finesse or two non-finesse weapons
Attack rolls is based of the Main Weapon, so it rolls with the ability modifier. It might also use some bonuses from magic weapons, unfortunately
Damage rolls subtracts the Dexterity Modifier if it's a finesse weapon or Strenght Modifier if it's not. The WieldingFinesseWeapon check isn't super precise either, it returns true if the character is holding a finesse weapon in either hand

data "SpellRoll" "Attack(AttackType.MeleeWeaponAttack)"
data "SpellSuccess" "IF(WieldingFinesseWeapon(context.Source)):DealDamage(max(1,OffhandMeleeWeapon)-max(0,DexterityModifier), OffhandMeleeWeaponDamageType);IF(not WieldingFinesseWeapon(context.Source)):DealDamage(max(1,OffhandMeleeWeapon)-max(0,StrengthModifier), OffhandMeleeWeaponDamageType);ExecuteWeaponFunctors(OffHand)"

The end result, given the character is using two weapons of the same type, is exactly what we expect. The appropriate modifier is added to the attack roll, and the modifier is canceled on the damage roll (unless it's negative)

from raw.

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.