Skip to content

AC not normalizing correctly #2

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

Closed
ben-githubs opened this issue Apr 6, 2025 · 1 comment
Closed

AC not normalizing correctly #2

ben-githubs opened this issue Apr 6, 2025 · 1 comment

Comments

@ben-githubs
Copy link
Owner

Archmage-MM has the following (serialized) AC:

"ac": [
      {
        "value": [
          12,
          {
            "ac": 15,
            "condition": "with {@spell mage armor}",
            "braces": true
          }
        ],
        "__dataclass__": "AC"
      },
      {
        "value": 15,
        "note": "(with {@spell mage armor})",
        "__dataclass__": "AC"
      }
    ]

The second AC entry (15 with mage armor) appears twice, once as a distinct entry, and once inside the value of the first entry. The value of the first entry should simple be 12.

This likely indicated a problem with the conversion script.

@ben-githubs
Copy link
Owner Author

Resolved with PR #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant