Git Product home page Git Product logo

Comments (1)

zachary-kaelan avatar zachary-kaelan commented on July 18, 2024 1

Yeah, having a single cost field and then a variety of bool fields to select the type, is not optimal.

I also noticed that a few mutations have a separate ability definition for climbing which has a different, more reasonable way of specifying cost, that can also support "damage" and "pain":

{
  "type": "climbing_aid",
  "id": "ability_WEB_RAPPEL",
  "//": "Extremely safe descent regardless of height by spinning webs.",
  "copy-from": "generic_superpower",
...
    "cost": { "kcal": 87, "thirst": 10 },
...
  },
  "condition": {
    "type": "trait",
    "flag": "WEB_RAPPEL"
  }
}

I also notice that some activated mutations have EOCs that do nothing but call the EOC_GENERIC_SPELL_MUTATION with parameters for turn cost and stamina cost that in turn calls the EOC_GENERIC_SPELL_MUTATION_ACT to cast the spell. Spells can use math for calculating the cost, but the only values accepted for energy_source are MANA, BIONIC, HP, STAMINA, NONE.

My initial idea is to create a generic cost object that is like the cost object in the climbing abilities, except with some extra possible costs added, including a run_eoc field.

from cataclysm-dda.

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.