class Game_Actor < Game_Battler
alias_method(:gain_exp_RP_S, :gain_exp)
def gain_exp(exp, mult=true)
if mult == true
player_level = $game_player.actor.level # #0.45 - предел 24к для 1600 (8к), 0.66 - 16к
exp = (exp*0.2) * (7.00 / (0.45 + Math.exp(-0.1 * (player_level - 25))) - 0.5)
if exp > 100
exp = exp.round(-1)
SndLib.sys_LvUp(50,100)
$game_map.popup(0,"EXP+#{exp}",0,0)
end
else
exp = exp*mult.to_f
if exp > 9
tmp_exp = @exp_when_killed # перенести блок с сообщением в gain_exp
SndLib.sys_LvUp(5,150)
$game_map.popup(0,"EXP+#{(exp).round}",0,0)
end
end
gain_exp_RP_S(exp)
end
end