Diff
checker
Texto
Texto
Imágenes
Documentos
Excel
Carpetas
Legal
Enterprise
Aplicación de escritorio
Precios
Iniciar sesión
Descargar Diffchecker Desktop
Comparar texto
Encuentra la diferencia entre dos archivos de texto
Herramientas
Historial
Editor live
Ocultar sin cambios
Sin ajuste de línea
Vista
Dividido
Unificado
Nivel de detalle
Inteligente
Palabra
Letra
Resaltado de sintaxis
Elegir sintaxis
Ignorar
Transformar texto
Ir al primer cambio
Editar entrada
Diffchecker Desktop
La forma más segura de usar Diffchecker. ¡Obtén la app de Diffchecker Desktop: tus diffs nunca salen de tu computadora!
Obtener Desktop
Untitled diff
Creado
hace 9 años
El diff nunca expira
Borrar
Exportar
Compartir
Explicar
0 eliminaciones
Líneas
Total
Eliminado
Caracteres
Total
Eliminado
Para continuar usando esta función, actualice a
Diff
checker
Pro
Ver precios
29 líneas
Copiar todo
9 adiciones
Líneas
Total
Añadido
Caracteres
Total
Añadido
Para continuar usando esta función, actualice a
Diff
checker
Pro
Ver precios
35 líneas
Copiar todo
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
Copiar
Copiado
Copiar
Copiado
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
Diferencias guardadas
Texto original
Abrir archivo
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
Texto modificado
Abrir archivo
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
Encontrar la diferencia