Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 140
    • Issues 140
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #1639

Closed
Open
Created Jun 27, 2024 by a-anthei@a-anthei

Threat mechanic is almost entirely broken

Threat mechanic modes are currently broken, except for the mode=add.

mode=set works like mode=add and adds to the threat value instead of setting it to the specified value.

mode=multiply multiplies the threat value and adds it to the already existing threat. For example - threat{amount=2;mode=multiply} turns an X amount of threat to X+2X instead of to 2X.

mode=divide divides the threat value and adds the result to the already existing threat.

mode=remove does not work with any targeter other than @target. - settarget @ mechanic followed by @target does not work either.

I tested these issues using the Build 5107 jar(fix for the issue here)

Quick demonstration video using the lines below https://youtu.be/J609EznrPdY

    - threat{amount=;mode=} @ ~onInteract
    - effect:particles{particle=snowflake;amount=10;hs=0.1;vs=0.1} @self ~onInteract
    - skill{s=adversary_threattest} @self ~onDamaged
adversary_threattest:
    Skills:
        - message{m="<trigger.name> <trigger.threat>"} @trigger
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking