Giter VIP home page Giter VIP logo

Comments (3)

orendain avatar orendain commented on September 15, 2024

At first thought, three approaches come to mind. In no particular order:

  1. Extend the 2-element array to 4-element array, where each of the 4 types of damage are specified.
    • Pros: Single rule
    • Cons: It will be tricky for users to specify, for example, splash and crit splash damage while not wanting to specify regular damage.
  2. Modify the rule to accept a struct type, rather than a list/array. For example, like PieceProperty in PieceConfigAdjustedRule.
    • Pros: Users may specify only the damage types they want.
    • Cons: Additional verbosity in ruleset configs. I.e., no longer [3, 6], but rather { TargetDamage = 3, CritDamage = 6 }
  3. Create a separate rule for splash damage.

WDYT?

from demeomods.

jimconner avatar jimconner commented on September 15, 2024

I think that option 2 is the best one. Not all attacks have splash damage, so having to specify a list of 4 numbers would be confusing. I don't think that the verbosity in the ruleset is too much of a con.

from demeomods.

TheGrayAlien avatar TheGrayAlien commented on September 15, 2024

Just wondering if it might have been easier to change this rule to be Adjusted instead of Overridden? Then you could go with option 1 and use 4 parameters because if you want no damage change you just put in a 0 instead of having to define the damage number.

from demeomods.

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.