FoV adjustment

Post Reply
nasomi
Posts: 141
Joined: Wed Feb 13, 2013 8:51 am

FoV adjustment

Post by nasomi » Sun Aug 03, 2014 2:39 pm

players obviously are glad to take the easiest route to the top, even if it means grinding EP mobs for pages. To give them some incentive to do things a bit more challenging, I made some modifications.

This would go at line 406 in fieldsofvalor.lua

Code: Select all

        local page_credit = 1;

        if (killer:getMainLvl() > 12 and killer:getMainLvl() >= mob:getMainLvl()) then
            page_credit = 0
        end 

        if ((partyType < 2 and mob:checkBaseExp() and killer:checkDistance(mob) < 100 and page_credit = 1) or killer:checkFovDistancePenalty() == 0) then
This makes it so that players can get normal FoV up until 12, but after that the mobs must be tough or greater to get xp.

Edit: Cleaned it up a bit.

Edit2: The server didn't like that code at all, so I simplified it even more.

Post Reply