Модуль:Prototypes/Оружия: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 60: | Строка 60: | ||
local oneHandDamage = melee.damage.types | local oneHandDamage = melee.damage.types | ||
local | local resultParts = {} | ||
table.insert(resultParts, "В одной руке: " .. formatDamageList(oneHandDamage)) | table.insert(resultParts, "В одной руке: " .. formatDamageList(oneHandDamage)) | ||
if | if entry.IncreaseDamageOnWield | ||
local twoHandDamage = combineDamageTables(oneHandDamage, | and entry.IncreaseDamageOnWield.damage | ||
and entry.IncreaseDamageOnWield.damage.types then | |||
local twoHandDamage = combineDamageTables(oneHandDamage, entry.IncreaseDamageOnWield.damage.types) | |||
table.insert(resultParts, "В двух руках: " .. formatDamageList(twoHandDamage)) | table.insert(resultParts, "В двух руках: " .. formatDamageList(twoHandDamage)) | ||
end | |||
if entry.DamageOtherOnHit | |||
and entry.DamageOtherOnHit.damage | |||
and entry.DamageOtherOnHit.damage.types then | |||
local throwingDamage = entry.DamageOtherOnHit.damage.types | |||
table.insert(resultParts, "Матательный: " .. formatDamageList(throwingDamage)) | |||
end | end | ||