Skip to content

🐞Negative equals condition not producing a negative result #380

@mrglyndle

Description

@mrglyndle

Check for existing bug reports before submitting.

  • I searched for existing Bug Reports and found no similar reports.

Expected Behavior

When using a formula that includes negative equals conditions like:

dice: 10d6-=1
or
dice: 10d6=-1

I'm expecting to get a -1 for any 1s rolled eg. three 1s would return -3

Current behaviour

When using the =-{n} or -={n} the result I'm getting is always 0.
Sorry if it's me misunderstanding the syntax!

For further clarity
I'm actually trying to combine the -1 for any 1s rolled with +1 for rolls of 5 or higher.
I was trying dice: 10d6>=5-=1.
This seems to support positive results fine eg. +1 for any results of 5s or higher or 1s with dice: 10d6>=5=1

Reproduction

As mentioned above, a simple roll like...

dice: 10d6-=1
or
dice: 10d6=-1

...isn't acheiving the expected behaviour.

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version Check

1.9.12

Plugin Version

11.4.2

Confirmation

  • I have disabled all other plugins and the issue still persists.

Possible solution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions