Some fuckball shoutouts

This commit is contained in:
Oven Bread 2025-10-26 23:46:32 -07:00
parent c13e86e11e
commit afdfbfa80d

View file

@ -85,6 +85,41 @@ class SkullballCourse : MapArea {
removeAttribute(player, attributeSkullballInstance)
}
}
fun nearestWerewolfSay(loc: Location, chatText: String) {
var werewolfNpc = findLocalNPCs(loc, 40).filter { npc ->
npc.id == NPCs.SKULLBALL_TRAINER_1662
}.sortedWith { a, b ->
a.location.getDistanceSquared(loc) - b.location.getDistanceSquared(loc)
}.getOrNull(0)
if (werewolfNpc != null) {
// println("werewolf ${werewolfNpc.location}")
sendChat(werewolfNpc, chatText)
}
}
fun randomWerewolfSay(): String {
return listOf(
"You have truly gifted paws!",
"I've never seen anything like it!",
"Claws first - think later.",
"You need a few more skullball lessons.",
"Keep it up!",
"Don't give up the day job!",
"Look at @g[her,him] go!",
"Pathetic!",
"What - a - goal !!!",
"That was just plain lucky.",
).random()
}
fun randomZiplineWerewolfSay(): String {
return listOf(
"Give my regards to the ground...",
"Don't let the spikes or the blood put you off...",
"Now for a true test of teeth...",
).random()
}
}
override fun defineAreaBorders(): Array<ZoneBorders> {
@ -118,6 +153,11 @@ class SkullballCourse : MapArea {
if (nextGoal < skullballGoals.size) {
registerHintIcon(player, getScenery(extractLoc(skullballGoals[nextGoal]))!!)
}
if (nextGoal < skullballGoals.size) {
nearestWerewolfSay(entity.location, randomWerewolfSay())
} else {
nearestWerewolfSay(entity.location, "@g[He,She] shoots - @g[He,She] scores!!!!!")
}
}
}
}