Diff
checker
文本
文本
图像
文档
Excel
文件夹
Legal
Enterprise
桌面版
定价
登录
下载 Diffchecker 桌面版
比较文本
查找两个文本文件之间的差异
工具
历史
实时编辑器
折叠未更改行
关闭换行
视图
拆分
统一
比对精度
智能
单词
字符
语法高亮
选择语法
忽略
文本转换
转到第一个差异
编辑输入
Diffchecker Desktop
运行Diffchecker最安全的方式。获取Diffchecker桌面应用:您的差异永远不会离开您的电脑!
获取桌面版
Untitled diff
创建于
9年前
差异永不过期
清除
导出
分享
解释
0 删除
行
总计
删除
字符
总计
删除
要继续使用此功能,请升级到
Diff
checker
Pro
查看价格
29 行
全部复制
9 添加
行
总计
添加
字符
总计
添加
要继续使用此功能,请升级到
Diff
checker
Pro
查看价格
35 行
全部复制
function Player:onGainExperience(source, exp, rawExp)
function Player:onGainExperience(source, exp, rawExp)
if not source or source:isPlayer() then
if not source or source:isPlayer() then
return exp
return exp
end
end
-- Soul regeneration
-- Soul regeneration
local vocation = self:getVocation()
local vocation = self:getVocation()
if self:getSoul() < vocation:getMaxSoul() and exp >= self:getLevel() then
if self:getSoul() < vocation:getMaxSoul() and exp >= self:getLevel() then
soulCondition:setParameter(CONDITION_PARAM_SOULTICKS, vocation:getSoulGainTicks() * 1000)
soulCondition:setParameter(CONDITION_PARAM_SOULTICKS, vocation:getSoulGainTicks() * 1000)
self:addCondition(soulCondition)
self:addCondition(soulCondition)
end
end
-- Apply experience stage multiplier
-- Apply experience stage multiplier
复制
已复制
复制
已复制
exp = exp *
Game.getExperienceStage(self:getLevel())
-- custom edit: half exp after some passive damage bonus
if(self:getLevel() < configManager.getNumber(configKeys.MAX_LEVEL)) then
exp = exp * (Game.getExperienceStage(self:getLevel()))
else
exp = exp *
(
Game.getExperienceStage(self:getLevel())
/ (self:getPassiveDamageBonus()+1))
end
-- Stamina modifier
-- Stamina modifier
if configManager.getBoolean(configKeys.STAMINA_SYSTEM) then
if configManager.getBoolean(configKeys.STAMINA_SYSTEM) then
useStamina(self)
useStamina(self)
local staminaMinutes = self:getStamina()
local staminaMinutes = self:getStamina()
if staminaMinutes > 2400 and self:isPremium() then
if staminaMinutes > 2400 and self:isPremium() then
exp = exp * 1.5
exp = exp * 1.5
elseif staminaMinutes <= 840 then
elseif staminaMinutes <= 840 then
exp = exp * 0.5
exp = exp * 0.5
end
end
end
end
return exp
return exp
end
end
已保存差异
原始文本
打开文件
function Player:onGainExperience(source, exp, rawExp) if not source or source:isPlayer() then return exp end -- Soul regeneration local vocation = self:getVocation() if self:getSoul() < vocation:getMaxSoul() and exp >= self:getLevel() then soulCondition:setParameter(CONDITION_PARAM_SOULTICKS, vocation:getSoulGainTicks() * 1000) self:addCondition(soulCondition) end -- Apply experience stage multiplier exp = exp * Game.getExperienceStage(self:getLevel()) -- Stamina modifier if configManager.getBoolean(configKeys.STAMINA_SYSTEM) then useStamina(self) local staminaMinutes = self:getStamina() if staminaMinutes > 2400 and self:isPremium() then exp = exp * 1.5 elseif staminaMinutes <= 840 then exp = exp * 0.5 end end return exp end
更改后文本
打开文件
function Player:onGainExperience(source, exp, rawExp) if not source or source:isPlayer() then return exp end -- Soul regeneration local vocation = self:getVocation() if self:getSoul() < vocation:getMaxSoul() and exp >= self:getLevel() then soulCondition:setParameter(CONDITION_PARAM_SOULTICKS, vocation:getSoulGainTicks() * 1000) self:addCondition(soulCondition) end -- Apply experience stage multiplier -- custom edit: half exp after some passive damage bonus if(self:getLevel() < configManager.getNumber(configKeys.MAX_LEVEL)) then exp = exp * (Game.getExperienceStage(self:getLevel())) else exp = exp * (Game.getExperienceStage(self:getLevel()) / (self:getPassiveDamageBonus()+1)) end -- Stamina modifier if configManager.getBoolean(configKeys.STAMINA_SYSTEM) then useStamina(self) local staminaMinutes = self:getStamina() if staminaMinutes > 2400 and self:isPremium() then exp = exp * 1.5 elseif staminaMinutes <= 840 then exp = exp * 0.5 end end return exp end
查找差异