Codisimus / PhatLoots

Bukkit Plugin which provides highly configurable loot for all
http://codisimus.com/phatloots
18 stars 58 forks source link

Request Feature - Network booster- Better drops - permission #36

Closed tara81 closed 8 years ago

tara81 commented 8 years ago

Enable a permission that allows players with the permission to have an increased chance to get loot drops . Example: A phatloot has a collection that has 2 items : A bow and a sword. The bow is at 20% chance and the sword is at 100% chance. With the permission given, it raises the chances on all loot by 5% or 10% or 20% or 50% ! Depending on what you put in the configuration.

Could be a donator perk that is EULA compatible.

Config example:

Custom Permission1: Loot chance boost permission: phatloots.boost.10 Loot chance boost percentage: 10 Custom Permission2: Loot chance boost permission: phatloots.boost.20 Loot chance boost percentage: 20

Codisimus commented 8 years ago

PhatLoots can easily support this as it already does something similar with mob loot. I was thinking about tying the Luck attribute to increased loots. But this would be much simpler. However, permission nodes defined in a config file goes against the Bukkit API so I may try to think of another way to do that.

tara81 commented 8 years ago

It doesn't have to be in the configuration, Just as long as we can select the amount increased :D

It appears McMMo does it with their skills:

http://pastebin.com/CaWEnQWD

Codisimus commented 8 years ago

I just re-read the Bukkit documentation and I guess it doesn't actually say that you should dynamically create permissions like this. So that is what I will likely do.

Codisimus commented 8 years ago

Almost done with this... might have it for you tonight.

tara81 commented 8 years ago

awesome to hear !

tara81 commented 8 years ago

On the third night of xmas, my codi gave to me, 3 new permissions, 2 new world loot commands, and an addon that prevents ninja looting.

Codisimus commented 8 years ago

Just finished testing. there should be a dev build available later today. Hopefully during the noon hour if I have time during my lunch to commit the changes.

In the meantime, permission nodes for this are in the following format: phatloots.bonus.# with decimal places are also supported i.e. phatloots.bonus.10.5. If a Player has multiple permission nodes then the bonuses get stacked. Remember that this is percentage based so anything over 100 is equivalent to 100%.

You will be required to register each number within the config file in an array format. i.e. [0.5, 3, 10, 15.2, 25]

tara81 commented 8 years ago

awesome so the new config will have something like Bonus Perms: [0.5, 3, 10, 15.2, 25] ?

Codisimus commented 8 years ago

Yup! https://github.com/Codisimus/PhatLoots/blob/master/src/config.yml#L117

Codisimus commented 8 years ago

And here is the dev build which includes this feature: https://github.com/Codisimus/PhatLoots/releases/tag/dev-build-77

tara81 commented 8 years ago

does this work on 1.9.4 ? Whats your paypal again?

Codisimus commented 8 years ago

Yes, this supports versions 1.9 and above. My PayPal email is codisimus@gmail.com