EXP Loss of blessings in TFS 1.3

Valania

Learning PHP/Lua
Joined
Oct 23, 2009
Messages
315
Best answers
0
Reaction score
1
Location
Germany
As the question says...Where to change the EXP Loss of blessings in TFS 1.3?

Cheers
 

roriscrave

Well-Known Member
Joined
Dec 7, 2011
Messages
742
Best answers
19
Reaction score
89
As the question says...Where to change the EXP Loss of blessings in TFS 1.3?

Cheers
data/lib/core/player.lua
Lua:
function Player.getLossPercent(self)
    local blessings = 0
    local lossPercent = {
        [0] = 100,
        [1] = 70,
        [2] = 45,
        [3] = 25,
        [4] = 10,
        [5] = 0
    }

    for i = 1, 5 do
        if self:hasBlessing(i) then
            blessings = blessings + 1
        end
    end
    return lossPercent[blessings]
end
 
Top