42 lines
983 B
Lua
42 lines
983 B
Lua
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
|
|
local ____exports = {}
|
|
local EMPTY_TOTALS = {
|
|
battle_level = 0,
|
|
bonus_damage = 0,
|
|
attack_speed = 0,
|
|
bonus_armor = 0,
|
|
max_health = 0,
|
|
max_mana = 0,
|
|
health_regen = 0,
|
|
mana_regen = 0,
|
|
move_speed = 0,
|
|
magic_resist = 0,
|
|
spell_amp = 0,
|
|
all_stats = 0,
|
|
all_stats_pct = 0,
|
|
bonus_strength = 0,
|
|
bonus_agility = 0,
|
|
bonus_intellect = 0,
|
|
strength_pct = 0,
|
|
agility_pct = 0,
|
|
intellect_pct = 0,
|
|
luck = 0,
|
|
outgoing_damage_pct = 0,
|
|
incoming_damage_reduction_pct = 0,
|
|
attack_speed_pct = 0,
|
|
move_speed_pct = 0,
|
|
base_damage_pct = 0,
|
|
crit_mult = 0
|
|
}
|
|
local provider
|
|
function ____exports.setArsenalTotalsProvider(self, nextProvider)
|
|
provider = nextProvider
|
|
end
|
|
function ____exports.getArsenalTotals(self, hero)
|
|
if not provider then
|
|
return EMPTY_TOTALS
|
|
end
|
|
return provider(nil, hero)
|
|
end
|
|
return ____exports
|