mirror of
https://github.com/OldManAlpha/Puppeteer.git
synced 2025-11-28 23:48:35 +00:00
Minor fixes and add new fake names
This commit is contained in:
parent
14c1e2e10b
commit
a3eac81863
15
HealUI.lua
15
HealUI.lua
@ -46,7 +46,16 @@ function HealUI:New(unit)
|
||||
return obj
|
||||
end
|
||||
|
||||
local fakeNames = {"Leeroyjenkins", "Realsigred", "Appledog"}
|
||||
local fakeNames = {"Leeroyjenkins", "Realsigred", "Appledog", "Exdraclespy", "Dieghostt", "Olascoli", "Yaijin",
|
||||
"Geroya", "Artemyz", "Nomeon", "Orinnberry", "Hoppetosse", "Deathell", "Jackbob", "Luscita", "Healpiggies",
|
||||
"Pamara", "Merauder", "Onetwofree", "Biggly", "Drexx", "Grassguzzler", "Thebackup", "Steaktank", "Fshoo",
|
||||
"Bovinebill", "Rawtee", "Aylin", "Sneeziesnorf", "Dreak", "Jordin", "Evilkillers", "Xathas", "Linkado",
|
||||
"Smiteknight", "Rollnmbqs", "Viniss", "Rinnegon", "Elfdefense", "Foxtau", "Tombdeath", "Myhawk", "Numnumcat",
|
||||
"Laudead", "Esatto", "Boffin", "Tikomo", "Huddletree", "Butterboy", "Bolgrand", "Ginius", "Exulthiuss",
|
||||
"Xplol", "Wheeliebear", "Pimenton", "Meditating", "Qyroth", "Lazhar", "Rookon", "Eiris", "Padren",
|
||||
"Erazergus", "Scarlatina", "Holdrim", "Soulbane", "Debilitated", "Doorooid", "Palefire", "Tellarna",
|
||||
"Breathofwing", "Chillaf", "Hulena", "Hyperiann", "Bluebeam", "Daevana", "Adriena", "Aeywynn", "Bluaa",
|
||||
"Chadd", "Leutry", "Mouzer", "Qiner"}
|
||||
function HealUI.GenerateFakeStats()
|
||||
|
||||
local name = fakeNames[math.random(table.getn(fakeNames))]
|
||||
@ -57,7 +66,7 @@ function HealUI.GenerateFakeStats()
|
||||
local maxHealth = math.random(100, 5000)
|
||||
if math.random(10) > 3 then
|
||||
currentHealth = math.random(1, maxHealth)
|
||||
elseif math.random(10) == 1 then
|
||||
elseif math.random(8) == 1 then
|
||||
currentHealth = 0
|
||||
else
|
||||
currentHealth = maxHealth
|
||||
@ -77,7 +86,7 @@ function HealUI.GenerateFakeStats()
|
||||
end
|
||||
end
|
||||
|
||||
local online = not (math.random(10) == 1)
|
||||
local online = not (math.random(12) == 1)
|
||||
|
||||
local fakeStats = {
|
||||
name = name,
|
||||
|
||||
@ -37,6 +37,7 @@ function InitializeDefaultProfiles()
|
||||
profile.PaddingBottom = 16
|
||||
profile.AuraTracker.Height = 16
|
||||
profile.NameText.FontSize = 10
|
||||
profile.NameText.MaxWidth = 80
|
||||
local healthTexts = profile.HealthTexts
|
||||
healthTexts.Normal.FontSize = 10
|
||||
healthTexts.WithMissing.FontSize = 8
|
||||
@ -174,6 +175,7 @@ function InitializeDefaultProfiles()
|
||||
profile.NameText.AlignmentH = "LEFT"
|
||||
profile.NameText.AlignmentV = "TOP"
|
||||
profile.NameText.Anchor = "Container"
|
||||
profile.NameText.MaxWidth = 200
|
||||
local healthTexts = profile.HealthTexts
|
||||
healthTexts.Normal.AlignmentH = "CENTER"
|
||||
profile.HealthDisplay = "Health/Max Health"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user