Yanfly Enemy Levels

Script: https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/enemy-levels/
I am using yanfly enemy levels and am noticing a bit of an issue. When I do the math for one of my bosses, the gold and exp don't show up what they are supposed to.
1620523522901.png

When I do a battle test with him at level 25 the amount of gold I get is supposed to look like this:
2,000 x (1.00+(25) x 0.15) + (10 x (25-1))
Which is supposed to equal: 9,740
But when I go into a battle test the amount comes out as this:
1620523896971.png

1620523931489.png


Any help is appreciated.
The reason for this is that the overwrites for exp and gold got the param IDs the wrong way round, so exp uses the rate for gold and vice versa.

Change the 8s in lines 493 and 494 to 9s, and the 9s in lines 505 and 506 to 8s, and it should work properly.

You could also fix it by switching :gold and :exp around in the DEFAULT_GROWTH hashmap starting on line 140 to make :exp ID 8 and :gold ID 9 if that's easier.
The reason for this is that the overwrites for exp and gold got the param IDs the wrong way round, so exp uses the rate for gold and vice versa.

Change the 8s in lines 493 and 494 to 9s, and the 9s in lines 505 and 506 to 8s, and it should work properly.

You could also fix it by switching :gold and :exp around in the DEFAULT_GROWTH hashmap starting on line 140 to make :exp ID 8 and :gold ID 9 if that's easier.
Thanks the 8 and 9 on those lines change worked.
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-enemy-levels.136341/