Aller au contenu

« Module:Infobox/Arme gamebryo » : différence entre les versions

m
aucun résumé des modifications
Kharmitch (discussion | contributions)
mAucun résumé des modifications
Kharmitch (discussion | contributions)
mAucun résumé des modifications
Ligne 136 : Ligne 136 :


for i = 1, 9 do
for i = 1, 9 do
     local perkDamExplMult = forceNumber(localdata["perk" .. i .. " eff mult"])
     local perkDamExplMult = forceNumber(localdata["perk" .. i .. " expl mult"])
     local perkDamExplAdd  = forceNumber(localdata["perk" .. i .. " eff add"])
     local perkDamExplAdd  = forceNumber(localdata["perk" .. i .. " expl add"])
     if perkDamExplMult > 0 or perkDamExplAdd > 0 then
     if perkDamExplMult > 0 or perkDamExplAdd > 0 then
         perksDamExpl = perksDamExpl + (damExplTotal * perkDamExplMult) + perkDamExplAdd
         perksDamExpl = perksDamExpl + (damExplTotal * perkDamExplMult) + perkDamExplAdd
Ligne 179 : Ligne 179 :


local damagePerAttackCell = formatData(damNormTotal)
local damagePerAttackCell = formatData(damNormTotal)
if perksDamNormTotal > 0 then damagePerAttackCell = damagePerAttackCell .. ' (' .. formatData(perksDamNormTotal) .. ')' end
if perksDamNorm > 0 then damagePerAttackCell = damagePerAttackCell .. ' (' .. formatData(perksDamNormTotal) .. ')' end
if damExplTotal > 0 then
if damExplTotal > 0 then
     damagePerAttackCell = damagePerAttackCell .. ' + ' .. formatData(damExplTotal)
     damagePerAttackCell = damagePerAttackCell .. ' + ' .. formatData(damExplTotal)
     if perksDamExplTotal > 0 then damagePerAttackCell = damagePerAttackCell .. ' (' .. formatData(perksDamExplTotal) .. ')' end
     if perksDamExpl > 0 then damagePerAttackCell = damagePerAttackCell .. ' (' .. formatData(perksDamExplTotal) .. ')' end
     damagePerAttackCell = damagePerAttackCell .. ' ' .. icon.build({ 'explosion' })
     damagePerAttackCell = damagePerAttackCell .. ' ' .. icon.build({ 'explosion' })
end
end
if damEffTotal > 0 then
if damEffTotal > 0 then
     local effectDuration = localdata["effect duration"] or "1"
     local effectDuration = localdata["effect duration"] or "1"
     damagePerAttackCell = damagePerAttackCell .. ' + ' .. formatData(damEffTotal)
     damagePerAttackCell = damagePerAttackCell .. ' + ' .. formatData(damEffTotal)
     if perksDamEffTotal > 0 then damagePerAttackCell = damagePerAttackCell .. ' (' .. formatData(perksDamEffTotal) .. ')' end
     if perksDamEff > 0 then damagePerAttackCell = damagePerAttackCell .. ' (' .. formatData(perksDamEffTotal) .. ')' end
     damagePerAttackCell = damagePerAttackCell .. ' sur ' .. effectDuration .. ' s ' .. icon.build({ 'effet' })
     damagePerAttackCell = damagePerAttackCell .. ' sur ' .. effectDuration .. ' s ' .. icon.build({ 'effet' })
end
end
Ligne 197 : Ligne 196 :
if damExplProj > 0 then
if damExplProj > 0 then
     damagePerProjCell = damagePerProjCell .. ' + ' .. formatData(damExplProj)
     damagePerProjCell = damagePerProjCell .. ' + ' .. formatData(damExplProj)
     if perksDamExplProjTotal > 0 then damagePerProjCell = damagePerProjCell .. ' (' .. formatData(perksDamExplProjTotal) .. ')' end
     if perksDamExplProj > 0 then damagePerProjCell = damagePerProjCell .. ' (' .. formatData(perksDamExplProjTotal) .. ')' end
     damagePerProjCell = damagePerProjCell .. ' ' .. icon.build({ 'explosion' })
     damagePerProjCell = damagePerProjCell .. ' ' .. icon.build({ 'explosion' })
end
end
Ligne 204 : Ligne 203 :
     local effectDuration = localdata["effect duration"] or "1"
     local effectDuration = localdata["effect duration"] or "1"
     damagePerProjCell = damagePerProjCell .. ' + ' .. formatData(damEffProj)
     damagePerProjCell = damagePerProjCell .. ' + ' .. formatData(damEffProj)
     if perksDamEffProjTotal > 0 then damagePerProjCell = damagePerProjCell .. ' (' .. formatData(perksDamEffProjTotal) .. ')' end
     if perksDamEffProj > 0 then damagePerProjCell = damagePerProjCell .. ' (' .. formatData(perksDamEffProjTotal) .. ')' end
     damagePerProjCell = damagePerProjCell .. ' sur ' .. effectDuration .. ' s ' .. icon.build({ 'effet' })
     damagePerProjCell = damagePerProjCell .. ' sur ' .. effectDuration .. ' s ' .. icon.build({ 'effet' })
end
end
Ligne 212 : Ligne 211 :
if damEffTotal > 0 then
if damEffTotal > 0 then
     dpsCell = dpsCell .. ' + ' .. formatData(damEffTotal)
     dpsCell = dpsCell .. ' + ' .. formatData(damEffTotal)
     if perksDamEffTotal > 0 then dpsCell = dpsCell .. ' (' .. perksDamEffTotal .. ')' end
     if perksDamEff > 0 then dpsCell = dpsCell .. ' (' .. perksDamEffTotal .. ')' end
     dpsCell = dpsCell .. ' ' .. icon.build({ 'effet' })
     dpsCell = dpsCell .. ' ' .. icon.build({ 'effet' })
end
end
Ligne 220 : Ligne 219 :
if damEffTotal > 0 then
if damEffTotal > 0 then
     dpsReloadCell = dpsReloadCell .. ' + ' .. formatData(damEffTotal)
     dpsReloadCell = dpsReloadCell .. ' + ' .. formatData(damEffTotal)
     if perksDamEffTotal > 0 then dpsReloadCell = dpsReloadCell .. ' (' .. formatData(perksDamEffTotal) .. ')' end
     if perksDamEff > 0 then dpsReloadCell = dpsReloadCell .. ' (' .. formatData(perksDamEffTotal) .. ')' end
     dpsReloadCell = dpsReloadCell .. ' ' .. icon.build({ 'effet' })
     dpsReloadCell = dpsReloadCell .. ' ' .. icon.build({ 'effet' })
end
end
Ligne 229 : Ligne 228 :


local attackPerSecondCell = formatData(attacksPerSec)
local attackPerSecondCell = formatData(attacksPerSec)
if perksAttacksPerSecTotal > 0 then attackPerSecondCell = attackPerSecondCell .. ' (' .. formatData(perksAttacksPerSecTotal) .. ')' end
if perksAttacksPerSec > 0 then attackPerSecondCell = attackPerSecondCell .. ' (' .. formatData(perksAttacksPerSecTotal) .. ')' end


local reloadTimeCell = formatData(reloadTime)
local reloadTimeCell = formatData(reloadTime)
if perksReloadTimeTotal > 0 then reloadTimeCell = reloadTimeCell .. ' (' .. formatData(perksReloadTimeTotal) .. ')' end
if perksReloadTime > 0 then reloadTimeCell = reloadTimeCell .. ' (' .. formatData(perksReloadTimeTotal) .. ')' end


--------------------------------------------------------
--------------------------------------------------------
Bureaucrate, commentadmin, emailconfirmed, Administrateurs d’interface, staff, Administrateur
62 734

modifications