@@ -50,19 +50,7 @@ function MinionListClass:AddValueTooltip(tooltip, index, minionId)
5050 if tooltip :CheckForUpdate (minionId ) then
5151 local minion = self .data .minions [minionId ]
5252 tooltip :AddLine (18 , " ^7" .. minion .name )
53- if # minion .spawnLocation > 0 then
54- local coloredLocations = {}
55- for _ , location in ipairs (minion .spawnLocation ) do
56- table.insert (coloredLocations , colorCodes .RELIC .. location )
57- end
58- for i , spawn in ipairs (coloredLocations ) do
59- if i == 1 then
60- tooltip :AddLine (14 , s_format (" ^7Spawn: %s" , spawn ))
61- else
62- tooltip :AddLine (14 , s_format (" ^7%s%s" , " " , spawn )) -- Indented so all locations line up vertically in tooltip
63- end
64- end
65- end
53+ tooltip :AddSeparator (10 )
6654 tooltip :AddLine (14 , s_format (" ^7Spectre Reservation: %s%d" , colorCodes .SPIRIT , tostring (minion .spectreReservation )))
6755 tooltip :AddLine (14 , s_format (" ^7Companion Reservation: %s%s%%" , colorCodes .SPIRIT , tostring (minion .companionReservation )))
6856 tooltip :AddLine (14 , " ^7Category: " .. minion .monsterCategory )
@@ -90,6 +78,21 @@ function MinionListClass:AddValueTooltip(tooltip, index, minionId)
9078 tooltip :AddLine (14 , " ^7Skill: " .. self .data .skills [skillId ].name )
9179 end
9280 end
81+ tooltip :AddSeparator (10 )
82+ if # minion .spawnLocation > 0 then
83+ local coloredLocations = {}
84+ for _ , location in ipairs (minion .spawnLocation ) do -- Print (Map) or (Act 7) in white, and map name in green.
85+ local mainText , bracket = location :match (" ^(.-)%s*(%b())%s*$" )
86+ table.insert (coloredLocations , bracket and (colorCodes .RELIC .. mainText .. " " .. " ^7" .. bracket ) or (colorCodes .RELIC .. location ))
87+ end
88+ for i , spawn in ipairs (coloredLocations ) do
89+ if i == 1 then
90+ tooltip :AddLine (14 , s_format (" ^7Spawn: %s" , spawn ))
91+ else
92+ tooltip :AddLine (14 , s_format (" ^7%s%s" , " " , spawn )) -- Indented so all locations line up vertically in tooltip
93+ end
94+ end
95+ end
9396 end
9497end
9598
@@ -139,10 +142,10 @@ function SpawnListClass:AddValueTooltip(tooltip, index, value)
139142 end
140143 if foundArea then
141144 tooltip :AddLine (18 , foundArea .name )
142- tooltip :AddLine (14 , " Area Level: " .. foundArea .level )
143145 if foundArea .description and foundArea .description ~= " " then
144- tooltip :AddLine (14 , colorCodes .CURRENCY .. ' "' .. foundArea .description .. ' "^7 ' )
146+ tooltip :AddLine (14 , colorCodes .CURRENCY .. ' "' .. foundArea .description )
145147 end
148+ tooltip :AddLine (14 , " ^7Area Level: " .. foundArea .level )
146149 local biomeNameMap = {
147150 water_biome = " Water" ,
148151 mountain_biome = " Mountain" ,
@@ -163,19 +166,20 @@ function SpawnListClass:AddValueTooltip(tooltip, index, value)
163166 end
164167 end
165168 if # biomeNameList > 0 then
166- tooltip :AddLine (14 , " Biome : " .. table.concat (biomeNameList , " , " ))
169+ tooltip :AddLine (14 , " ^7Biome : " .. table.concat (biomeNameList , " , " ))
167170 end
168171 end
172+ tooltip :AddSeparator (10 )
169173 if # foundArea .monsterVarieties > 0 and foundArea .baseName ~= " The Ziggurat Refuge" then
170- tooltip :AddLine (14 , " Spectres :" )
174+ tooltip :AddLine (14 , " ^7Spectres :" )
171175 for _ , monsterName in ipairs (foundArea .monsterVarieties ) do
172176 tooltip :AddLine (14 , " - " .. monsterName )
173177 end
174178 else
175- tooltip :AddLine (14 , " No monsters listed" )
179+ tooltip :AddLine (14 , " ^7No monsters listed" )
176180 end
177181 else
178- tooltip :AddLine (18 , " World area not found: " .. tostring (value ))
182+ tooltip :AddLine (18 , " ^7World area not found: " .. tostring (value ))
179183 end
180184 end
181185end
0 commit comments