EXP Loss of blessings in TFS 1.3

Valania

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

Cheers
 

roriscrave

Intermediate OT User
Joined
Dec 7, 2011
Messages
485
Best answers
12
Reaction score
51
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