Jump to content

Buffs not working

Closed 1.1.2

Fatman
Fatman

Posted

Every one of the buffs apply except for #2 

 

"static_skins": {},
      "setInfo": {
        "2": {
          "setBonus": {
            "BonusMultiplier": {
              "modifier": 0.0,
              "Permissions [permission / title]": null
            },
            "UncannyDodge": {
              "modifier": 0.04,
              "Permissions [permission / title]": null
            }
          }
        },
        "1": {
          "setBonus": {
            "UncannyDodge": {
              "modifier": 0.02,
              "Permissions [permission / title]": null
            }
          }
        },
        "3": {
          "setBonus": {
            "UncannyDodge": {
              "modifier": 0.06,
              "Permissions [permission / title]": null
            }
          }
        },
        "4": {
          "setBonus": {
            "UncannyDodge": {
              "modifier": 0.08,
              "Permissions [permission / title]": null
            }
          }
        },
        "5": {
          "setBonus": {
            "UncannyDodge": {
              "modifier": 0.1,
              "Permissions [permission / title]": null
            }
          }
        },
        "6": {
          "setBonus": {
            "UncannyDodge": {
              "modifier": 0.12,
              "Permissions [permission / title]": null
            }
          }
        },
        "7": {
          "setBonus": {
            "InstantMining": {
              "modifier": 0.2,
              "Permissions [permission / title]": null
            },
            "RockCycle": {
              "modifier": 0.2,
              "Permissions [permission / title]": null
            },
            "BonusMultiplier": {
              "modifier": 0.1,
              "Permissions [permission / title]": null
            },
            "UncannyDodge": {
              "modifier": 0.14,
              "Permissions [permission / title]": null

image.png

imthenewguy

Posted

You have put set bonuses for "2" items before "1". Change this around and it should work fine.

The plugin assess the config 1 bonus at a time to see if the amount of pieces worn are equal to or greater than the set bonus entry and if so, moves on to the next.

If you are wearing 2 pieces, this is how the logic would work with your current setup.

  1. Confirmed 2 pieces equipped.
  2. Check config for a match and enter into a foreach loop, where the key is the set pieces required.
  3. We start by assessing "2" and confirm that our current set amount is greater or equal to "2" pieces. We set our highest value as "2"..
  4. We move onto the next entry, which is "1", and we are greater than or equal to that as well, so we set our highest value as "1".
  5. We check the entry after that, but the entry is larger than "2" so we ignore it and confirm that "1" is our highest set number.

I will add some logic to change it so it doesn't register a smaller number, but in the mean time change the entries to be ascending order and it will fix the issue.

  • Like 1
imthenewguy

Posted

Changed Status from Pending to Closed

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.5k

Files Sold

Total number of files sold.

2.1m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.