Files

418 lines
16 KiB
Lua

-- Boar Challenge +: the funny lines. Shown in a banner and in chat now and then while you kill boars, and when you
-- level, die, reach a milestone, set a record, beat your day's goal or keep a streak going. Switch them with
-- /boar lines off, rare or normal, or in the settings window.
local BC = BoarChallengePlus
BC.LINES = {
-- now and then, while you kill boars
kill = {
"The boars have a group chat. You're the main topic.",
"Somewhere, a boar just updated its will.",
"Boars do not fear the dark. They fear you.",
"That boar had plans. Big plans. Mostly mud.",
"The local mud pit is getting very quiet.",
"One more boar. The legend grows.",
"Your sword has started humming a boar song.",
"Boar census update: numbers falling fast.",
"Trotters up! Another one done.",
"Somewhere a boar mother says your name to scare the piglets.",
"The boars have started a petition about you.",
"You and boars: a long, one-sided story.",
"Tusk count rising. Bag space falling.",
"That boar never saw you coming. None of them do.",
"The hogs are hiding. Not well, but they are trying.",
"Fun fact: nobody has ever out-snorted you.",
"The grass is greener where you have been.",
"Keep swinging. The boars will not count themselves.",
"This field used to be full of boars. Used to be.",
"Your weapon wants a raise.",
"A boar just whispered: not again.",
"Boars rate you one star. You rate them XP.",
"Every boar is a step. Keep walking.",
"You smell faintly of boar. Wear it with pride.",
"The boars are holding a meeting. You are not invited.",
"Grind now, brag later.",
"Somewhere, a druid is very upset with you.",
"Snout count: going down.",
"Your boar sense is tingling.",
"That one squealed in a minor key.",
"Bristles everywhere. Worth it.",
"Not all heroes wear capes. Some smell of boar.",
"The boars call you The Tusk Taker.",
"Another boar returns to the great mud pit in the sky.",
"Your map is just one big boar now.",
"Slow and steady wins the boar race.",
"XP tastes better when it oinks.",
"One boar at a time. That is the whole plan.",
"Boars ahead. Victory behind. Keep going.",
"They spawn, you swing. Perfect teamwork.",
"Even the vultures are impressed.",
"Boring? Never. Boar-ing? Always.",
"You have a gift. The boars disagree.",
"Ten more and then a snack. Maybe twenty.",
"The respawn timer fears you.",
"Professional boar remover, at your service.",
"The boars blame the weather. It is you.",
"Your feet are tired. Your blade is not.",
"Some climb mountains. You flatten boars.",
"If boars had wanted posters, your face would be on all of them.",
"Another tusk for the trophy wall.",
"The piglets tell scary stories about you at night.",
"Your hearthstone is jealous of how long you stay out here.",
"The boar union wants a word.",
"That was a good boar. It is in a better place now.",
"Mud on your boots, XP in your bar.",
"Patience is a virtue. So is pulling the next boar.",
"Boars: zero. You: lots.",
"You are not grinding. You are building a legend.",
"Word is the boars are hiring a bodyguard.",
"Snort less, swing more.",
"A boar walked into a field. It did not walk out.",
"Your road is paved with bristles.",
"Boar fact: they do not like you. At all.",
"The XP bar moves. Slowly. But it moves.",
"Every boar you beat is a boar you never fight again.",
"This spot has lovely boar views.",
"Somewhere, a quest giver wonders where you went.",
"Quest log? Never heard of it.",
"The ground shakes. Oh wait, that is just you.",
"The hunt goes on.",
"A good day for boars. A bad day for boars.",
"Who needs dungeons when you have boars?",
"You are the reason boars travel in groups.",
"Tusks are temporary. Glory is forever.",
"The boars thought this was a quiet field.",
"Bring snacks. The boars brought nothing.",
"Patience of a mountain, swing of an avalanche.",
"Somewhere, a boar is practising its battle cry. It will not help.",
"The boars are learning. Too slowly.",
"Squeal of approval: received.",
"Stretch your fingers. The boars are not going anywhere.",
"Fast hands, happy boar count.",
"The leaderboard of one: you, on top.",
"Boars fall, numbers climb.",
"Expect scattered boars and heavy XP all day.",
"Did that boar just roll its eyes at you?",
"Your armour has a faint pork scent. Very fashionable.",
"Hunters ask you for tips now.",
"A mudslide of XP is coming your way.",
"Boar after boar after boar. Bliss.",
"Even your mount is bored. You are not.",
"The respawns know your name.",
"The boars hoped you had logged off. You had not.",
"Your bags are full of tusks and good intentions.",
"A boar a minute keeps the quest givers out of it.",
"Somewhere a bard is writing a song about this. It is mostly squeals.",
"You have seen more boars today than most people see in a lifetime.",
"The boars are drawing straws to see who goes next.",
"Are you boar-d yet? Didn't think so.",
"Are you board yet?",
"Are you board yet? The boars are.",
"Going hog wild out here.",
"Swine and dandy.",
"Hogging all the XP again?",
"That was a boar-derline crime.",
"Pig-ture perfect swing.",
"Tusk, tusk. Another one down.",
"Really bringing home the bacon today.",
"Snout of luck for that one.",
"Boar-n to grind.",
"Oink and you'll miss it.",
"Sow far, sow good.",
"Ham-azing work.",
"Pork chop. Pork chopped.",
"No boar-ders can stop you.",
"Don't hog the field. Actually, do.",
"A cut above the rest. A pork cut.",
"Boar-dom is for other people.",
"Grunt work, but somebody has to do it.",
"That boar went to pieces. Pork-tions, really.",
"Hog heaven, right here.",
"Snout of this world.",
"Un-boar-lievable aim.",
"Bacon me crazy with these kills.",
"Hamming it up out here.",
"Get your grunt on.",
"Pig out on that XP.",
"Boar-ing holes in the herd.",
"Squeal deal. Keep going.",
"Tusk and you shall receive.",
"Hogwash? No, hog-smash.",
"You're on a pork roll.",
"Ham-mer time.",
"Sow long, little boar.",
"Swine-tastic.",
"Make like a boar and get grounded.",
"Hogs and robbers.",
"The swine-ing never stops.",
"A pig deal, every time.",
"Tusk-ed off to the graveyard.",
"Pigs might fly. Boars just fall.",
"What a boar-gain of XP.",
"Oink if you love grinding.",
"That was snout fair. For the boar.",
"Ham on, ham on, ham on.",
"Boar-der patrol, on duty.",
"Hog-wild XP rates.",
"Pork-sonal best pace.",
"Another one bites the mud.",
"Bristle while you work.",
"This field is boar-ly standing.",
"You've got hog-standing talent.",
"Rasher than the last one.",
"Swine-ing for the fences.",
"Hog the spotlight. You earned it.",
"Boar-dering on genius.",
"Bacon-ing a legend.",
"Sizzling form today.",
"A grunt, a squeal, a ding.",
"The boar-st is yet to come. For them.",
"Pig-ture this: level 60.",
"Snout and about.",
"Boar-n free. Not for long.",
"Hold your hogses.",
"Go the whole hog.",
"Ham-bition: unlimited.",
"Trotter-ly brilliant.",
"Ex-squeal-sior!",
"This is hog-standing work.",
"You put the pork in pork-fessional.",
"Sty-lish kill.",
"Sty-ing focused.",
"That's boar-ly a scratch on you.",
"Ham-ple XP for everyone. Well, for you.",
"Boar-n to be wild.",
"Smells like boar spirit.",
"Have a hog-tastic day.",
"When pigs fly, you'll hunt those too.",
"It's a boar-tiful day.",
"Every boar has its day. Not today.",
"Boar-ed games? No, boar games.",
"Pig-nic time later. Boars first.",
"The squeal of victory.",
"Hogging the XP bar again.",
"Swine o'clock. Again.",
"Boar-dly going where many boars have gone before.",
"Snout-standing.",
"Tusk-tastic.",
"A hog-ful of XP.",
"Bring home the bacon. Leave the boar.",
"Rooting for you. Unlike the boars.",
"Boar-st mode on.",
"That was ham-azing. Again.",
"No snout about it, you're good.",
"Mud, sweat and tusks.",
"Grunt and bear it. Well, grunt and boar it.",
"These boars are toast. And bacon.",
"Squeal me in, coach.",
"A sty-ling performance.",
-- boar facts (true ones)
"Boar fact: a group of wild boars is called a sounder. Was.",
"Boar fact: wild boars are the wild ancestors of the farm pig.",
"Boar fact: baby wild boars are born with stripes that fade as they grow.",
"Boar fact: a boar's lower tusks never stop growing. Unlike its life.",
"Boar fact: wild boars are good swimmers. Water won't save them either.",
"Boar fact: boars roll in mud to cool off, because pigs hardly sweat.",
"Boar fact: wild boars can run at about 40 km/h. Not fast enough.",
"Boar fact: a boar's snout is a shovel. It digs for roots, bugs and truffles.",
"Boar fact: pigs have such good noses they are used to hunt truffles.",
"Boar fact: mother boars and their young live together. Grown males mostly live alone.",
"Boar fact: wild boars live on every continent except Antarctica.",
"Boar fact: in Norse myths the god Freyr rode a golden boar called Gullinbursti.",
"Boar fact: King Richard III's badge was a white boar.",
"Boar fact: wild boars mostly come out at dusk and at night. You come out all day.",
-- darker ones
"You've wiped out whole families of boars. Several family trees, now stumps.",
"That sounder won't be getting back together.",
"Somewhere a piglet is asking where Dad went.",
"Another boar family reunion cancelled.",
"Hordes of boars, gone. Not even the Horde does that.",
"The boar graveyard needs a bigger field.",
"Boar orphanages are full this season.",
"Grandma boar warned them about you.",
"There used to be a boar family here. Now there's XP.",
"That boar had three piglets and a mortgage.",
"Boar funerals now run every day, around the clock.",
"The boars have stopped naming their piglets. What's the point?",
"One boar, three cousins, a whole bloodline. All you.",
"Extinction is a strong word. You're working on it.",
"The boar memorial wall just ran out of room.",
},
-- when you level up
level = {
"Level up! The boars felt that one.",
"New level, same boars, bigger smile.",
"Ding! Somewhere a boar heard it and ran.",
"One level closer to 60. The boars are nervous.",
"Level up! Your snout sense grows stronger.",
"Another level, all on bristles and grit.",
"The boars sent a card. It says: please stop.",
"Ding! Treat yourself. Then back to the boars.",
"New level unlocked: more boar.",
"You went up. The boar count went down.",
"That golden glow looks good on you.",
"Level up! The mud pits salute you.",
"Stronger, faster, still smelling of boar.",
"Up you go. The boars stay down.",
"Another step on the road to 60.",
"New level! Your tusk collection approves.",
"Ding! Boar-n again, but stronger.",
"You really hammed up that level.",
"Level up! Hog-ray!",
"Ding! Bacon-ing stronger.",
"Level up! Pig deal.",
"New level. Same old boar-dom for them.",
"Ding! You're a cut above.",
"Level up! Snout of this world.",
"Hog-ray for levels!",
"Ding! Tusk-tastic.",
"Level up! Sow proud of you.",
"Up a level. Down a herd.",
"Ding! Swine and dine tonight.",
},
-- when you die
death = {
"Even the best boar hunters take a nap now and then.",
"The boars got lucky. Write it down, it will not happen often.",
"A small setback. A big comeback is coming.",
"Spirit healers love a regular.",
"Walk it off. Well, run it off. As a ghost.",
"Every legend has a rough day.",
"That boar will be telling this story for years.",
"Down, but not out. Well, out for a moment.",
"Take a breath. The boars are still there.",
"Ghost run! Good exercise.",
"Defeat is just a long way of saying: next time.",
"Plot twist. Back in a minute.",
"The boars celebrated. Briefly.",
"Death is short. Boar grudges are forever.",
"Shake it off and get back in the mud.",
"Boar-ed to death. Ouch.",
"Don't worry, you'll be bacon in no time.",
"Well, that was a hog-tied situation.",
"Pork-tunately, you respawn.",
"That boar really hogged the win.",
"Taken down a peg. A pig peg.",
"Squealed it. Not in a good way.",
"Hog-wash, rinse, repeat.",
"You got boar-ed. Back you go.",
"Bacon your way back to life.",
"A rasher decision than usual.",
},
-- at 100, 250, 500, 1,000 boars and on
milestone = {
"A whole herd, gone. Well done.",
"The boar history books will remember this day.",
"Some people count sheep. You count boars.",
"That is a lot of tusks.",
"Statues have been built for less.",
"The boars have called an emergency meeting.",
"A milestone! The mud pits weep.",
"Look at that number. Just look at it.",
"The boars send their regards. And their complaints.",
"A number worth framing.",
"A boar-ly believable number.",
"That is a whole lot of ham.",
"Hogs and kisses for this milestone.",
"Boar-ly believable, again.",
"A pig-ture worth keeping.",
"That's sow many boars.",
"Tusk count: legendary.",
"A ham-mazing milestone.",
"Snout-standing number.",
"Hog heaven has a new hero.",
"The herd is just a rumour now.",
},
-- a new personal record
record = {
"Your old self called. It wants a rematch.",
"Best ever! The boars are writing letters.",
"You just beat the best boar hunter you know: you.",
"New record. Old record, take a seat.",
"History was made. In a muddy field.",
"Faster, stronger, more boar.",
"Somebody frame this moment.",
"The bar has been raised. By you. Again.",
"Swine time to celebrate.",
"New record! You're on a hog roll.",
"Record broken. Boars broken too.",
"Un-boar-lievable record.",
"Pork-sonal best!",
"Hog-standing work.",
"A record to squeal about.",
"Bacon all the records today.",
},
-- the day's goal, or beating yesterday
goal = {
"Goal smashed. The boars felt it.",
"Yesterday's you is very proud. And a bit jealous.",
"Mission complete. Extra boars are a bonus.",
"Today: won.",
"Every boar from here on is a gift.",
"You beat yesterday. Tomorrow is nervous.",
"Daily dose of boar: delivered.",
"That is how you do a day.",
"Goal reached. Go hog wild.",
"A pig-tastic day.",
"Bacon brought home.",
"Goal done. Hog the glory.",
"Snout bad at all.",
"Sow much done today.",
"Hog-tastic finish.",
"Ham-mazing day's work.",
},
-- 5, 10, 25, 50 and 100 boars in a row
streak = {
"No breaks, no mercy.",
"The boars cannot catch their breath.",
"On a roll, and the boars are rolling too.",
"Keep the chain going!",
"Unstoppable. Untouchable. Slightly muddy.",
"Boar after boar, no rest.",
"The streak is alive!",
"Snacks can wait. The streak cannot.",
"Squeal-y impressive streak.",
"Hog wild and not stopping.",
"Boar-n to streak.",
"Sty-ing on a roll.",
"Pork-er of a streak.",
"Snout stopping now.",
"Are you board yet? Nope, still going.",
"Tusk after tusk.",
"Grunt, swing, repeat.",
},
}
-- A line of this kind: never the same as last time, and not one shown lately until most of them have been.
function BC.PickLine(kind)
local list = BC.LINES[kind]
if not list or not BC.db then return nil end
local n = table.getn(list)
if n == 0 then return nil end
if n == 1 then return list[1] end
if type(BC.db.seen[kind]) ~= "table" then BC.db.seen[kind] = {} end
local seen, last = BC.db.seen[kind], BC.db.lastLine[kind]
local count = 0
for i in pairs(seen) do
if type(i) == "number" and i <= n then count = count + 1 end
end
if count >= math.floor(n * 0.8) then
seen = {}
BC.db.seen[kind] = seen
end
local free = {}
for i = 1, n do
if not seen[i] and i ~= last then table.insert(free, i) end
end
if table.getn(free) == 0 then
for i = 1, n do
if i ~= last then table.insert(free, i) end
end
end
local pick = free[math.random(table.getn(free))]
seen[pick] = true
BC.db.lastLine[kind] = pick
return list[pick]
end