Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make bodypart warmth available in conditions #59801

Merged
merged 1 commit into from Aug 1, 2022

Conversation

mlange-42
Copy link
Contributor

Summary

Interface "Make bodypart warmth available in conditions"

Purpose of change

Be able to make custom bodypart warmth widgets. Required for/used in #59797.

Describe the solution

Make bodypart warmth available as u_val in conditions.

Describe alternatives you've considered

None

Testing

Made a widget using this, in #59797.

Additional context

Usage example:

  {
    "id": "warmth_torso_symbol",
    "type": "widget",
    "style": "symbol",
    "bodypart": "torso",
    "clauses": [
      {
        "id": "scorching",
        "sym": "",
        "color": "red",
        "condition": { "compare_int": [ { "u_val": "warmth" }, ">", { "const": 9500 } ] }
      },
      ...
    ]
  }

@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions labels Jul 31, 2022
@mlange-42 mlange-42 mentioned this pull request Jul 31, 2022
27 tasks
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Jul 31, 2022
@dseguin dseguin merged commit 7845740 into CleverRaven:master Aug 1, 2022
@mlange-42 mlange-42 deleted the bodypart-warmth-conditions branch August 3, 2022 20:40
alef pushed a commit to alef/Cataclysm-DDA that referenced this pull request Aug 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants