Diff
checker
Texte
Texte
Images
Documents
Excel
Dossiers
Legal
Enterprise
Application de bureau
Prix
Se connecter
Télécharger Diffchecker Desktop
Comparer le texte
Trouver la différence entre deux fichiers texte
Outils
Historique
Éditeur live
Cacher identiques
Sans retour à la ligne
Vue
Divisé
Unifié
Niveau de précision
Intelligent
Mot
Caractère
Coloration syntaxique
Choisir la syntaxe
Ignorer
Transformer le texte
Aller au premier écart
Modifier l'entrée
Diffchecker Desktop
La façon la plus sécurisée d'utiliser Diffchecker. Obtenez l'application Diffchecker Desktop : vos diffs ne quittent jamais votre ordinateur !
Obtenir Desktop
Untitled diff
Créé
il y a 9 ans
Le diff n'expire jamais
Effacer
Exporter
Partager
Expliquer
0 suppressions
Lignes
Total
Supprimé
Caractères
Total
Supprimé
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
29 lignes
Copier tout
9 ajouts
Lignes
Total
Ajouté
Caractères
Total
Ajouté
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
35 lignes
Copier tout
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
Copier
Copié
Copier
Copié
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
Différences enregistrées
Texte d'origine
Ouvrir un fichier
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
Texte modifié
Ouvrir un fichier
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
Trouver la différence