(Yanfly) Can Extra Enemy Drops go below 1%?

http://yanfly.moe/2015/12/19/yep-47-extra-enemy-drops/


I don't see anywhere that says this on the page, but does anyone know if the drop % can go below 1?


Eg: 0.02%
It should. Although why would you have a drop rate that low?
It does not, nor is it supported. Yanfly's extra drops only supports whole number drop rates, a design choice made by Yanfly.
Thank you, I was wondering the same since a while now and it's hard to test on such low drop rates.
Mostly because I have a vast array of materials. I wanted 90% of the materials to be able to drop from every enemy (With variations such as elemental materials dropping more often from elemental enemies), but 1% seemed a little high with around 70 different materials.


Thank you for the information. 🙂
You could modify the plugin to accept non whole numbers if you knew how.
The plugin could handle decimal numbers, but they are not accepted in your notetags. You could go through the plugin and try to replace all 10 occurrences of


\d+)([%%])


by


\d+(?:\.\d+)?)([%%])


to allow decimal numbers as percentages.


I didn't test this, but if the game accepts a drop rate of 99.5% afterwards it should work for other numbers as well. 🙂


If you don't want to modify the original plugin, you can copy the affected functions into a new plugin, place it below the original and do the replacements there.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-can-extra-enemy-drops-go-below-1.60752/