hopefully fixed an issue with ex characters not getting a power table, also added an override property to stay in line with templating
This commit is contained in:
@@ -170,7 +170,24 @@ DataService.PowerTable = {
|
|||||||
[3] = {100,4},
|
[3] = {100,4},
|
||||||
[4] = {175,5},
|
[4] = {175,5},
|
||||||
[5] = {346,6},
|
[5] = {346,6},
|
||||||
}
|
},
|
||||||
|
-- ex units have no quality, they're strong so lets try just making them ssr power or something
|
||||||
|
["cirno_ex"] = {
|
||||||
|
["quality_override"] = "SSR"
|
||||||
|
},
|
||||||
|
["rumia_ex"] = {
|
||||||
|
["quality_override"] = "SSR"
|
||||||
|
},
|
||||||
|
-- alice patchy and lily have statlines 1 above where they should
|
||||||
|
["alice"] = {
|
||||||
|
["quality_override"] = "SSR"
|
||||||
|
},
|
||||||
|
["patchouli"] = {
|
||||||
|
["quality_override"] = "SSR"
|
||||||
|
},
|
||||||
|
["lily"] = {
|
||||||
|
["quality_override"] = "SR"
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
DataService.AttackFactorTable = {
|
DataService.AttackFactorTable = {
|
||||||
|
|||||||
@@ -776,6 +776,9 @@ function CDOTA_BaseNPC:THTD_GetGrowPower()
|
|||||||
if thtd_power_table[unitName] == nil then
|
if thtd_power_table[unitName] == nil then
|
||||||
thtd_power_table[unitName] = thtd_power_table[THTD_GetCardQualityText(unitName)]
|
thtd_power_table[unitName] = thtd_power_table[THTD_GetCardQualityText(unitName)]
|
||||||
end
|
end
|
||||||
|
if thtd_power_table[unitName]["quality_override"] ~= nil then
|
||||||
|
thtd_power_table[unitName] = thtd_power_table[thtd_power_table[unitName]["quality_override"]]
|
||||||
|
end
|
||||||
return math.floor(thtd_power_table[unitName][self.thtd_star][1] + thtd_power_table[unitName][self.thtd_star][2] * (self:THTD_GetLevel()-1))
|
return math.floor(thtd_power_table[unitName][self.thtd_star][1] + thtd_power_table[unitName][self.thtd_star][2] * (self:THTD_GetLevel()-1))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user