Модуль:Песочница/Pok: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) Нет описания правки |
||
| Строка 41: | Строка 41: | ||
(entry.DamageOtherOnHit and entry.DamageOtherOnHit.damage and entry.DamageOtherOnHit.damage.types) | (entry.DamageOtherOnHit and entry.DamageOtherOnHit.damage and entry.DamageOtherOnHit.damage.types) | ||
local result = "<ul>" .. formatDamageList(oneHandDamage) | local result = "В одной руке:" .. "<ul>" .. formatDamageList(oneHandDamage) .. "</ul>" | ||
if additionalDamage then | if additionalDamage then | ||
| Строка 51: | Строка 51: | ||
twoHandDamage[dmgType] = (twoHandDamage[dmgType] or 0) + addValue | twoHandDamage[dmgType] = (twoHandDamage[dmgType] or 0) + addValue | ||
end | end | ||
result = result .. formatDamageList(twoHandDamage) | result = result .. "В двух руках:" .. "<ul>" .. formatDamageList(twoHandDamage) .. "</ul>" | ||
end | end | ||
return frame:preprocess(result | return frame:preprocess(result) | ||
elseif mode == "attackRate" then | elseif mode == "attackRate" then | ||
local melee = entry.MeleeWeapon | local melee = entry.MeleeWeapon | ||