Line 93: |
Line 93: |
| end | | end |
| if row.tags.raid then | | if row.tags.raid then |
− | bg_color = row.tags.has_lbas_ha_bomber and self._ha_raid_battle_bg_color or self._raid_battle_bg_color | + | bg_color = self._raid_battle_bg_color |
| end | | end |
| if row.tags.night then | | if row.tags.night then |
Line 117: |
Line 117: |
| row.formation = row.formation .. '<br /><span class="explain" title="High Altitude Air Raid, 2-3 Rocket Interceptors are recommended">(HA)</span>' | | row.formation = row.formation .. '<br /><span class="explain" title="High Altitude Air Raid, 2-3 Rocket Interceptors are recommended">(HA)</span>' |
| end | | end |
− | local color = "initial" | + | return { |
− | if row.tags.boss then
| + | values = { formation = row.formation }, |
− | color = self._boss_battle_color
| + | color = row.tags.boss and self._boss_battle_color, |
− | end
| + | bg_color = row.tags.has_lbas_ha_bomber and self._ha_raid_battle_bg_color, |
− | return { values = { formation = row.formation }, color = color }
| + | } |
| end | | end |
| | | |
Line 133: |
Line 133: |
| | | |
| function NodeInfo:fleet(row) | | function NodeInfo:fleet(row) |
− | return { values = { fleet = row.fleet } } | + | return { |
| + | values = { fleet = row.fleet }, |
| + | bg_color = row.tags.has_lbas_ha_bomber and self._ha_raid_battle_bg_color, |
| + | } |
| end | | end |
| | | |
Line 159: |
Line 162: |
| | | |
| function NodeInfo:as(row) | | function NodeInfo:as(row) |
− | color = "initial" | + | return { |
− | if row.tags.boss then
| + | values = { as = row.as }, |
− | color = self._boss_battle_color
| + | color = row.tags.boss and self._boss_battle_color, |
− | end
| + | bg_color = row.tags.has_lbas_ha_bomber and self._ha_raid_battle_bg_color, |
− | return { values = { as = row.as }, color = color }
| + | } |
| end | | end |
− |
| + | |
| function NodeInfo:upcase(str) | | function NodeInfo:upcase(str) |
| str = str:gsub("(%s)(%l)", function(a, b) return a .. string.upper(b) end) | | str = str:gsub("(%s)(%l)", function(a, b) return a .. string.upper(b) end) |