Module:VaeringheimGossip: Difference between revisions

From MicrasWiki
Jump to navigationJump to search
NewZimiaGov (talk | contribs)
Created page with "local p = {} function p.getCurrentDate() local startDate = os.time({year = 1999, month = 8, day = 6}) local secondsInDay = 86400 local daysPerYear = 183 local currentDate = os.time() local totalDaysElapsed = math.floor((currentDate - startDate) / secondsInDay) local yearFraction = totalDaysElapsed / daysPerYear local psscYear = math.floor(yearFraction) local dayOfYear = math.floor((yearFraction - psscYear) * daysPerYear) + 1 local..."
 
NewZimiaGov (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 34: Line 34:
end
end


function p.generateGossip()
function p.generateSingleGossip()
     local npcs = {
     local npcs = {
         {name = "Amar Sefar", role = "Canal Dockworker", company = "Lake Morovia Blockade Fund", cult = "Ordo Solis Invicti", description = "A burly man with weathered skin, always wearing a wide-brimmed hat to shield himself from the sun."},
         {name = "Amar Sefar", role = "Canal Dockworker", company = "Lake Morovia Blockade Fund", cult = "Ordo Solis Invicti", description = "A burly dockworker with weathered skin and a strong back, Amar ensures that the bustling canals of Vaeringheim stay operational. He begins every morning with a prayer to the Ordo Solis Invicti, seeking blessings for smooth shipments and clear waters."},
         {name = "Liora Eoseth", role = "Merchant of Silks", company = "Market Hanavusu", cult = "Order of Aurora Mystica", description = "A petite woman with sharp features and flowing auburn hair, known for her vibrant robes."},
         {name = "Liora Eoseth", role = "Merchant of Silks", company = "Market Hanavusu", cult = "Order of Aurora Mystica", description = "A petite and sharp-eyed silk merchant, Liora sources rare and vibrant fabrics that light up the Market Hanavusu. Her devotion to the Order of Aurora Mystica inspires her designs, reflecting the light of dawn."},
         {name = "Tahir Morion", role = "Priest of the Host Spirit", company = "Temple Bank of the Reformed Stripping Path", cult = "Ordo Solis Invicti", description = "A tall, solemn man with a shaved head and piercing green eyes."},
         {name = "Tahir Morion", role = "Priest of the Host Spirit", company = "Temple Bank of the Reformed Stripping Path", cult = "Ordo Solis Invicti", description = "Tahir is a solemn and commanding presence at the Temple Bank, where he leads rituals that strengthen the community’s faith in the Host Spirit. His emerald-green eyes and deep voice make him a revered figure in Vaeringheim."},
         {name = "Kala Inephra", role = "Goldsmith", company = "Shï Collective", cult = "Guild of Golden Shadows", description = "A middle-aged woman with nimble fingers and a streak of silver in her jet-black hair."},
         {name = "Kala Inephra", role = "Goldsmith", company = "Shï Collective", cult = "Guild of Golden Shadows", description = "Kala crafts intricate jewelry that reflects her deep connection to the Guild of Golden Shadows. Her mysterious demeanor and precise hands produce pieces that are both luxurious and enigmatic."},
         {name = "Nadir Alphon", role = "Tavern Keeper", company = "Ale of the Night Central Brewery", cult = "Mystery of Red Mirth", description = "A stout man with a booming laugh and a thick mustache."},
         {name = "Nadir Alphon", role = "Tavern Keeper", company = "Ale of the Night Central Brewery", cult = "Mystery of Red Mirth", description = "Nadir is a stout and boisterous man who operates the most popular tavern in the canal district. Known for his Ale of the Night brews, his establishment is a hub for laughter, stories, and celebrations inspired by the Mystery of Red Mirth."},
         {name = "Elina Voraith", role = "Fisherwoman", company = "Suncliff Fisheries", cult = "Azure Sentinel Sect", description = "A lean, tanned woman with a perpetual smell of saltwater and a streak of mischief in her smile."},
         {name = "Elina Voraith", role = "Fisherwoman", company = "Suncliff Fisheries", cult = "Azure Sentinel Sect", description = "Elina is a fearless fisherwoman with salt-kissed skin and a steady hand. She navigates Lake Morovia daily, her devotion to the Azure Sentinel Sect guiding her through its treacherous waters."},
         {name = "Darin Ilphas", role = "Caravan Guard", company = "East Keltian Iron Company", cult = "Court of the Ironclad", description = "A rugged man with a scar across his cheek and a protective demeanor."},
         {name = "Darin Ilphas", role = "Caravan Guard", company = "East Keltian Iron Company", cult = "Court of the Ironclad", description = "A rugged guard with a scar over his left eye, Darin is known for his unwavering dedication to protecting Vaeringheim’s valuable iron caravans. His loyalty to the Court of the Ironclad is unshakable."},
         {name = "Saira Lineth", role = "Student of the Arts", company = "La Sái Ebile", cult = "Reverie Nebulous", description = "A dreamy young woman with ink-stained fingers and a penchant for painting sunsets."},
         {name = "Saira Lineth", role = "Student of the Arts", company = "La Sái Ebile", cult = "Reverie Nebulous", description = "Saira is a bright-eyed young artist who finds inspiration in the dreamlike teachings of the Reverie Nebulous. Her murals, often featuring swirling celestial themes, grace the walls of Vaeringheim’s artisan district."},
         {name = "Marik Troven", role = "Historian", company = "Temple University of Delphica", cult = "Conclave Illuminara", description = "A wiry man with spectacles perpetually sliding down his nose and a satchel full of scrolls."},
         {name = "Marik Troven", role = "Historian", company = "Temple University of Delphica", cult = "Conclave Illuminara", description = "Marik is a wiry academic who spends his days delving into the chronicles of Vaeringheim. Known for his meticulous research, he often lectures on the myths and histories preserved by the Conclave Illuminara."},
         {name = "Zia Falorin", role = "Street Performer", company = "Maritime Guild of the Cult of Maskmakers", cult = "Harmony Sanctum", description = "A flamboyant figure with a painted face and a penchant for acrobatics."},
         {name = "Zia Falorin", role = "Street Performer", company = "Maritime Guild of the Cult of Maskmakers", cult = "Harmony Sanctum", description = "Zia is an exuberant performer whose acts combine acrobatics, music, and storytelling. Her performances, influenced by the Harmony Sanctum, bring joy and balance to the streets of Vaeringheim."},
         {name = "Vera Myrian", role = "Apothecary", company = "Salurian Temple of Sacred Horehound", cult = "Mystery of the Verdant Embrace", description = "A serene woman with gentle eyes and a belt full of pouches and vials."},
         {name = "Vera Myrian", role = "Apothecary", company = "Salurian Temple of Sacred Horehound", cult = "Mystery of the Verdant Embrace", description = "Vera is a soft-spoken apothecary who crafts remedies infused with sacred chants from the Mystery of the Verdant Embrace. Her shop is a haven for those seeking both healing and serenity."},
         {name = "Torin Velar", role = "Blacksmith", company = "East Keltian Iron Company", cult = "Court of the Ironclad", description = "A burly man with soot-streaked arms and a hammer that rarely leaves his side."},
         {name = "Torin Velar", role = "Blacksmith", company = "East Keltian Iron Company", cult = "Court of the Ironclad", description = "Torin is a towering blacksmith whose forge burns day and night. Known for his resilience and strength, he attributes his craft to the discipline instilled by the Court of the Ironclad."},
         {name = "Ilari Draven", role = "Architect", company = "Thalassian Granite Export Cooperative", cult = "Guild of Golden Shadows", description = "A meticulous man with a monocle and a leather-bound notebook always in hand."},
         {name = "Ilari Draven", role = "Architect", company = "Thalassian Granite Export Cooperative", cult = "Guild of Golden Shadows", description = "Ilari is a visionary architect who blends functionality with artistic grandeur. His works often feature elements of sacred geometry inspired by his Guild of Golden Shadows affiliation."},
         {name = "Nina Iseth", role = "Trader", company = "Gladeseed Farmers' Union", cult = "Harmony Sanctum", description = "A shrewd woman with sharp eyes and a knack for bartering."},
         {name = "Nina Iseth", role = "Trader", company = "Gladeseed Farmers' Union", cult = "Harmony Sanctum", description = "Nina is a keen negotiator who ensures fair deals in the bustling markets. Her dedication to the Harmony Sanctum influences her balanced and ethical approach to trading."},
         {name = "Orin Lareth", role = "Boat Builder", company = "Lake Morovia Blockade Fund", cult = "Azure Sentinel Sect", description = "A stocky man with calloused hands and a deep tan."},
         {name = "Orin Lareth", role = "Boat Builder", company = "Lake Morovia Blockade Fund", cult = "Azure Sentinel Sect", description = "Orin is a skilled craftsman who builds boats designed to withstand the unpredictable waters of Lake Morovia. His meticulous work reflects the blessings of the Azure Sentinel Sect."},
         {name = "Rina Fahl", role = "Chef", company = "Ale of the Night Central Brewery", cult = "Mystery of Red Mirth", description = "A jovial woman with a round face and a knack for making people smile with her cooking."},
         {name = "Rina Fahl", role = "Chef", company = "Ale of the Night Central Brewery", cult = "Mystery of Red Mirth", description = "Rina is a vibrant chef whose innovative recipes draw crowds to her feasts. Her dishes, infused with the celebratory spirit of the Mystery of Red Mirth, are renowned across Vaeringheim."},
         {name = "Khalid Fenra", role = "Scholar", company = "Temple University of Delphica", cult = "Reverie Nebulous", description = "A lanky man with a dreamy expression and a habit of muttering to himself."},
         {name = "Khalid Fenra", role = "Scholar", company = "Temple University of Delphica", cult = "Reverie Nebulous", description = "Khalid is a contemplative scholar whose studies focus on the intersection of dreams and history. His insights are often attributed to the Reverie Nebulous."},
         {name = "Evanor Tyreth", role = "Carpenter", company = "East Keltian Timber Company", cult = "Sylvan Fellowship", description = "A wiry man with a saw always slung over his shoulder and a warm smile."},
         {name = "Evanor Tyreth", role = "Carpenter", company = "East Keltian Timber Company", cult = "Sylvan Fellowship", description = "Evanor is a talented carpenter who crafts beautiful and functional wooden pieces. His work is inspired by the natural balance celebrated by the Sylvan Fellowship."},
         {name = "Sorin Althis", role = "Guard Captain", company = "Baratar Corporation", cult = "Court of the Ironclad", description = "A stoic man with a commanding presence and a deep, gravelly voice."},
         {name = "Sorin Althis", role = "Guard Captain", company = "Baratar Corporation", cult = "Court of the Ironclad", description = "Sorin is a stoic guard captain who oversees Vaeringheim’s security. His disciplined leadership and loyalty to the Court of the Ironclad make him a respected figure."},
         {name = "Leona Veyar", role = "Painter", company = "Shï Collective", cult = "Order of Aurora Mystica", description = "A vibrant woman with paint-splattered clothing and a sparkle in her eye."},
         {name = "Leona Veyar", role = "Painter", company = "Shï Collective", cult = "Order of Aurora Mystica", description = "Leona is a vibrant painter whose work captures the beauty of dawn, a reflection of her devotion to the Order of Aurora Mystica."},
         {name = "Dariel Voss", role = "Bard", company = "La Sái Ebile", cult = "Reverie Nebulous", description = "A charismatic performer with a lute slung over his back and a song always ready."},
         {name = "Dariel Voss", role = "Bard", company = "La Sái Ebile", cult = "Reverie Nebulous", description = "Dariel is a charismatic bard whose performances are inspired by dreams and myths, often influenced by the teachings of the Reverie Nebulous."},
         {name = "Hirin Velas", role = "Jeweler", company = "Shï Collective", cult = "Guild of Golden Shadows", description = "A quiet man with steady hands and a love for intricate designs."},
         {name = "Hirin Velas", role = "Jeweler", company = "Shï Collective", cult = "Guild of Golden Shadows", description = "Hirin is a meticulous jeweler whose creations are imbued with the subtle mysteries of the Guild of Golden Shadows."},
         {name = "Zorin Kael", role = "Weaver", company = "Seamstresses of Rouge", cult = "Harmony Sanctum", description = "A tall man with a calm demeanor and a knack for creating intricate patterns."},
         {name = "Zorin Kael", role = "Weaver", company = "Seamstresses of Rouge", cult = "Harmony Sanctum", description = "Zorin is a skilled weaver whose intricate patterns reflect the balance and harmony celebrated by the Harmony Sanctum."},
         {name = "Linara Theros", role = "Tea House Keeper", company = "Market Hanavusu", cult = "Mystery of the Verdant Embrace", description = "A warm woman with a welcoming smile and a deep knowledge of herbal teas."},
         {name = "Linara Theros", role = "Tea House Keeper", company = "Market Hanavusu", cult = "Mystery of the Verdant Embrace", description = "Linara is a warm and knowledgeable tea house keeper who blends teas infused with the blessings of the Mystery of the Verdant Embrace."},
         {name = "Karim Jorath", role = "Fisherman", company = "Suncliff Fisheries", cult = "Azure Sentinel Sect", description = "A jovial man with a love for storytelling and a passion for the sea."},
         {name = "Karim Jorath", role = "Fisherman", company = "Suncliff Fisheries", cult = "Azure Sentinel Sect", description = "Karim is a jovial fisherman whose tales of the lake are as plentiful as his catches. He attributes his success to the Azure Sentinel Sect."},
         {name = "Mira Elvor", role = "Librarian", company = "Temple University of Delphica", cult = "Conclave Illuminara", description = "A meticulous woman with an ever-present pair of reading glasses and a soft voice."},
         {name = "Mira Elvor", role = "Librarian", company = "Temple University of Delphica", cult = "Conclave Illuminara", description = "Mira is a meticulous librarian whose quiet demeanor belies a vast knowledge of Vaeringheim’s history and legends."},
         {name = "Rivan Pharos", role = "Trader", company = "Gladeseed Farmers' Union", cult = "Harmony Sanctum", description = "A shrewd trader with a sharp mind and a ready smile."},
         {name = "Rivan Pharos", role = "Trader", company = "Gladeseed Farmers' Union", cult = "Harmony Sanctum", description = "Rivan is a shrewd trader who ensures ethical practices in all his dealings, guided by the Harmony Sanctum."},
         {name = "Talia Meren", role = "Herbalist", company = "Salurian Temple of Sacred Horehound", cult = "Mystery of the Verdant Embrace", description = "A serene woman with a deep knowledge of plants and their uses."},
         {name = "Talia Meren", role = "Herbalist", company = "Salurian Temple of Sacred Horehound", cult = "Mystery of the Verdant Embrace", description = "Talia is a serene herbalist whose remedies are as effective as they are thoughtfully crafted, thanks to her devotion to the Mystery of the Verdant Embrace."},
         {name = "Elanor Trayn", role = "Storyteller", company = "La Sái Ebile", cult = "Reverie Nebulous", description = "An older woman with a rich voice and a treasure trove of tales."}
         {name = "Elanor Trayn", role = "Storyteller", company = "La Sái Ebile", cult = "Reverie Nebulous", description = "Elanor is an older storyteller whose rich voice brings ancient myths and dreams to life, inspired by the Reverie Nebulous."}
     }
     }


     local gossip = {
     local gossip = {
        "The canals have seen fewer Morovian Rainbow Birds this season—some say it's an omen of change.",
         "A mysterious glowing light was spotted near the Host Spirit shrine on the eastern canals.",
        "Gold prices in the General Port are skyrocketing; whispers of a new trade route opening abound.",
         "Rumors swirl of a secret underground passage connecting the Temple Bank to the artisan district.",
         "A secretive cult was spotted performing rituals near the Tomb of Styx.",
         "A sculptor unveiled a new statue in honor of the Azure Sentinel Sect, drawing crowds in the central square.",
        "The Shï Collective's latest sculptures fetch unimaginable prices in the markets.",
         "The canals are alive with music as Vaeringheim’s Regatta Festival preparations are underway.",
         "Fishermen claim the Atterian Armored Pufferfish are growing larger this year, likely due to new hatchery practices.",
         "Local merchants report that an ancient relic was discovered during canal dredging.",
         "A caravan from Aurelia was attacked by rogue pirates, sparking rumors of Operation Thunder Drop's return.",
         "Residents claim to have seen ghostly figures walking across the bridges late at night.",
         "The Host Spirit's blessings were reportedly felt during the Lightfall Festival this year, bringing renewed hope.",
         "The Market Hanavusu is bustling with traders showcasing rare goods from Luminaria.",
         "A new canal project is rumored to link Vaeringheim directly to Lunalis Sancta.",
         "A historian’s lecture on the first Vaeringheim settlers drew record-breaking crowds at the Host Spirit Temple.",
         "The Pyralian Emberfey sightings near the tea houses of Luminaria have sparked pilgrimages.",
         "Fishermen near Lake Morovia have reported an unprecedented bloom of phosphorescent algae.",
         "A haunting song was heard from the depths of Lake Morovia—fisherfolk fear it may be tied to a Somniant Eidolon.",
         "A bard’s ballad about the Reformed Stripping Path is being sung in every tavern across Vaeringheim.",
         "A large shipment of spices was delayed due to unrest in the southern trade routes.",
         "The Shï Collective has unveiled an intricate golden amulet said to bring clarity to the wearer’s dreams.",
        "The annual Regatta Festival is expected to draw record-breaking crowds this year.",
         "An eccentric inventor claims to have created a device that will purify the canal water.",
         "Rumors swirl of a lost artifact found near the Tomb of Styx.",
         "The Lantern Lighting Ceremony in honor of the Host Spirit saw its largest crowd this year.",
         "Vaeringheim’s street performers have begun showcasing dances inspired by the Garganram.",
         "Vaeringheim’s artisans are creating a mural depicting the ancient myths of the Azure Sentinel Sect.",
         "A rare Morovian Sasquatch sighting has sparked a flurry of interest in the northern forests.",
         "The Merchant’s Guild debates the construction of a new trade outpost on the eastern canals.",
         "An eccentric scholar claims to have decoded a forgotten script from the Morovian Frontier Campaign.",
         "Fishermen report a sudden increase in their hauls, calling it a blessing from the Host Spirit.",
         "The canals were lit with lanterns last night in honor of the Host Spirit.",
         "Pilgrims arriving in Vaeringheim claim to have had vivid dreams of Atos guiding them.",
         "A local blacksmith has forged a blade said to be blessed by the Pyreska cult.",
         "The city council has approved funding for the restoration of the oldest bridge in Vaeringheim.",
         "Fisherfolk report seeing strange lights in the water near the docks after midnight.",
         "An alchemist revealed a new elixir crafted from Atterian Armored Pufferfish scales, sparking interest from traders.",
         "A bard’s new song about Operation Thunder Drop is stirring fierce debates in taverns across the city.",
         "Vaeringheim’s central square is being prepared for the Lightfall Festival, with lanterns and flowers.",
        "Caravan guards have increased patrols due to rising bandit activity on the eastern roads.",
         "A rogue trader was caught attempting to sell counterfeit artifacts from the Host Spirit Temple.",
         "A trader in the General Port is accused of smuggling relics from sacred sites.",
         "The canals are being cleaned for the upcoming festival, revealing forgotten relics beneath the water.",
         "The tea houses are abuzz with talk of an upcoming political summit in the city.",
         "The Shï Collective is hosting a workshop on crafting sacred jewelry at the artisan district.",
        "A mysterious illness has struck a small village on the outskirts of Vaeringheim.",
         "A scholar claims the Host Spirit shrine holds hidden runes that predict the future.",
         "Local merchants are lobbying for reduced tariffs on luxury goods.",
         "Vaeringheim’s musicians are composing a symphony to honor the Regatta Festival.",
         "The city’s weavers are creating a massive tapestry to commemorate the Lightfall Festival.",
         "A fisherman claims to have caught a fish inscribed with ancient symbols near the western docks.",
        "Pilgrims have begun flocking to Vaeringheim in anticipation of a major religious event.",
         "A new variety of herbal tea from the eastern marshes is gaining popularity among the city’s elite.",
         "A series of thefts in the artisan district has left jewelers on edge.",
         "Residents report strange lights in the canals, sparking superstitions about the Host Spirit’s favor.",
         "The Tavern Guild has declared a citywide celebration for the anniversary of the Bassaridian Charter.",
         "A historian uncovered documents suggesting a lost temple beneath the canal district.",
         "A historian claims to have uncovered a link between Vaeringheim’s architecture and ancient Haifan designs.",
        "The Lantern Lighting Ceremony is rumored to attract spirits of Vaeringheim’s founders.",
         "A sculptor unveiled a statue dedicated to the Host Spirit in the central square.",
         "An artisan has crafted a stunning mosaic of Lake Morovia, now displayed in the central square.",
         "The city council debates funding a new bridge over the eastern canals.",
         "Merchants are lobbying for reduced tariffs on spices imported from Luminaria.",
         "A series of murals depicting scenes from the Reformed Stripping Path have appeared overnight.",
         "A bard’s haunting melody about the Reformed Stripping Path has captivated audiences in every tavern.",
         "A rare bloom of phosphorescent plants in the northern marshes is drawing crowds.",
         "The Azure Sentinel Sect plans a public ceremony to bless the canal waters before the festival.",
         "Local farmers report that crops blessed by the Opsithia cult are yielding twice the usual harvest.",
         "Residents prepare for a massive parade featuring floats inspired by the myths of the Host Spirit.",
         "A visiting bard claims to have seen a vision of Styx during their performance.",
         "A sculptor’s depiction of the Azure Sentinel Sect’s blessing rituals has drawn widespread praise.",
         "Merchants in the General Port are investing heavily in new fishing vessels.",
         "Pilgrims claim the canals themselves whisper prayers to the Host Spirit during the night.",
         "The city watch has apprehended a gang accused of selling counterfeit relics.",
         "Vaeringheim’s tea houses are experimenting with new blends that incorporate rare herbs from Lake Morovia.",
         "An ancient scroll detailing rites of the Host Spirit has been donated to the library.",
         "The Merchant’s Guild is debating the introduction of steam-powered boats in the canal network.",
         "A new type of tea from Luminaria is causing a sensation in Vaeringheim’s tea houses.",
         "A ghost ship was reportedly sighted drifting near the northern docks during the early hours of dawn.",
         "A scholar suggests the glowing lights in Lake Morovia may be linked to the Pyralian Emberfey.",
         "A controversial play about the founding of Vaeringheim premiered at the main theater last night.",
         "A fisherman claims to have caught a fish inscribed with strange runes near the western docks.",
         "The central square is abuzz with excitement over a new mural depicting the Reformed Stripping Path.",
         "The canals are being cleaned in preparation for the upcoming Regatta Festival.",
         "A new canal section linking Vaeringheim to Lunalis Sancta is nearing completion, promising faster trade routes."
         "An eccentric inventor has designed a device to navigate Vaeringheim’s complex canal system.",
         "A caravan guard tells tales of a hidden treasure buried in the canyonlands.",
         "The Host Spirit shrine has seen a record number of visitors this season.",
         "A sculptor’s new work depicting Styx’s resurrection has sparked heated debates.",
         "A local tavern is hosting a storytelling competition with a focus on the Reformed Stripping Path.",
         "A young artist has painted a breathtaking mural of Lake Morovia’s wildlife in the marketplace."
     }
     }


     local dateInfo = p.getCurrentDate()
     local dateInfo = p.getCurrentDate()
     local news = {}
     local npc = npcs[math.random(#npcs)]
    local story = gossip[math.random(#gossip)]


     for i = 1, 100 do
     local entry = string.format(
        local npc = npcs[math.random(#npcs)]
        "Date: %d %s, %s PSSC | Reporter: %s (%s, %s, %s) | Gossip: %s",
        local story = gossip[math.random(#gossip)]
        dateInfo.day,
        local entry = string.format(
        dateInfo.month,
            "Date: %d %s, %s PSSC | Reporter: %s (%s, %s, %s) | Gossip: %s",
        dateInfo.year,
            dateInfo.day,
        npc.name,
            dateInfo.month,
        npc.role,
            dateInfo.year,
        npc.company,
            npc.name,
        npc.cult,
            npc.role,
        story
            npc.company,
    )
            npc.cult,
            story
        )
        table.insert(news, entry)
    end


     return news
     return entry
end
 
function p.generate(frame)
    return p.generateSingleGossip()
end
end


return p
return p

Latest revision as of 22:47, 25 December 2024

Documentation for this module may be created at Module:VaeringheimGossip/doc

local p = {}

function p.getCurrentDate()
    local startDate = os.time({year = 1999, month = 8, day = 6})
    local secondsInDay = 86400
    local daysPerYear = 183

    local currentDate = os.time()
    local totalDaysElapsed = math.floor((currentDate - startDate) / secondsInDay)

    local yearFraction = totalDaysElapsed / daysPerYear
    local psscYear = math.floor(yearFraction)
    local dayOfYear = math.floor((yearFraction - psscYear) * daysPerYear) + 1

    local month, dayInMonth
    if dayOfYear <= 61 then
        month = "Atosiel"
        dayInMonth = dayOfYear
    elseif dayOfYear <= 122 then
        month = "Thalassiel"
        dayInMonth = dayOfYear - 61
    else
        month = "Opsitheiel"
        dayInMonth = dayOfYear - 122
    end

    local dateInfo = {
        year = psscYear,
        month = month,
        day = dayInMonth
    }

    return dateInfo
end

function p.generateSingleGossip()
    local npcs = {
        {name = "Amar Sefar", role = "Canal Dockworker", company = "Lake Morovia Blockade Fund", cult = "Ordo Solis Invicti", description = "A burly dockworker with weathered skin and a strong back, Amar ensures that the bustling canals of Vaeringheim stay operational. He begins every morning with a prayer to the Ordo Solis Invicti, seeking blessings for smooth shipments and clear waters."},
        {name = "Liora Eoseth", role = "Merchant of Silks", company = "Market Hanavusu", cult = "Order of Aurora Mystica", description = "A petite and sharp-eyed silk merchant, Liora sources rare and vibrant fabrics that light up the Market Hanavusu. Her devotion to the Order of Aurora Mystica inspires her designs, reflecting the light of dawn."},
        {name = "Tahir Morion", role = "Priest of the Host Spirit", company = "Temple Bank of the Reformed Stripping Path", cult = "Ordo Solis Invicti", description = "Tahir is a solemn and commanding presence at the Temple Bank, where he leads rituals that strengthen the community’s faith in the Host Spirit. His emerald-green eyes and deep voice make him a revered figure in Vaeringheim."},
        {name = "Kala Inephra", role = "Goldsmith", company = "Shï Collective", cult = "Guild of Golden Shadows", description = "Kala crafts intricate jewelry that reflects her deep connection to the Guild of Golden Shadows. Her mysterious demeanor and precise hands produce pieces that are both luxurious and enigmatic."},
        {name = "Nadir Alphon", role = "Tavern Keeper", company = "Ale of the Night Central Brewery", cult = "Mystery of Red Mirth", description = "Nadir is a stout and boisterous man who operates the most popular tavern in the canal district. Known for his Ale of the Night brews, his establishment is a hub for laughter, stories, and celebrations inspired by the Mystery of Red Mirth."},
        {name = "Elina Voraith", role = "Fisherwoman", company = "Suncliff Fisheries", cult = "Azure Sentinel Sect", description = "Elina is a fearless fisherwoman with salt-kissed skin and a steady hand. She navigates Lake Morovia daily, her devotion to the Azure Sentinel Sect guiding her through its treacherous waters."},
        {name = "Darin Ilphas", role = "Caravan Guard", company = "East Keltian Iron Company", cult = "Court of the Ironclad", description = "A rugged guard with a scar over his left eye, Darin is known for his unwavering dedication to protecting Vaeringheim’s valuable iron caravans. His loyalty to the Court of the Ironclad is unshakable."},
        {name = "Saira Lineth", role = "Student of the Arts", company = "La Sái Ebile", cult = "Reverie Nebulous", description = "Saira is a bright-eyed young artist who finds inspiration in the dreamlike teachings of the Reverie Nebulous. Her murals, often featuring swirling celestial themes, grace the walls of Vaeringheim’s artisan district."},
        {name = "Marik Troven", role = "Historian", company = "Temple University of Delphica", cult = "Conclave Illuminara", description = "Marik is a wiry academic who spends his days delving into the chronicles of Vaeringheim. Known for his meticulous research, he often lectures on the myths and histories preserved by the Conclave Illuminara."},
        {name = "Zia Falorin", role = "Street Performer", company = "Maritime Guild of the Cult of Maskmakers", cult = "Harmony Sanctum", description = "Zia is an exuberant performer whose acts combine acrobatics, music, and storytelling. Her performances, influenced by the Harmony Sanctum, bring joy and balance to the streets of Vaeringheim."},
        {name = "Vera Myrian", role = "Apothecary", company = "Salurian Temple of Sacred Horehound", cult = "Mystery of the Verdant Embrace", description = "Vera is a soft-spoken apothecary who crafts remedies infused with sacred chants from the Mystery of the Verdant Embrace. Her shop is a haven for those seeking both healing and serenity."},
        {name = "Torin Velar", role = "Blacksmith", company = "East Keltian Iron Company", cult = "Court of the Ironclad", description = "Torin is a towering blacksmith whose forge burns day and night. Known for his resilience and strength, he attributes his craft to the discipline instilled by the Court of the Ironclad."},
        {name = "Ilari Draven", role = "Architect", company = "Thalassian Granite Export Cooperative", cult = "Guild of Golden Shadows", description = "Ilari is a visionary architect who blends functionality with artistic grandeur. His works often feature elements of sacred geometry inspired by his Guild of Golden Shadows affiliation."},
        {name = "Nina Iseth", role = "Trader", company = "Gladeseed Farmers' Union", cult = "Harmony Sanctum", description = "Nina is a keen negotiator who ensures fair deals in the bustling markets. Her dedication to the Harmony Sanctum influences her balanced and ethical approach to trading."},
        {name = "Orin Lareth", role = "Boat Builder", company = "Lake Morovia Blockade Fund", cult = "Azure Sentinel Sect", description = "Orin is a skilled craftsman who builds boats designed to withstand the unpredictable waters of Lake Morovia. His meticulous work reflects the blessings of the Azure Sentinel Sect."},
        {name = "Rina Fahl", role = "Chef", company = "Ale of the Night Central Brewery", cult = "Mystery of Red Mirth", description = "Rina is a vibrant chef whose innovative recipes draw crowds to her feasts. Her dishes, infused with the celebratory spirit of the Mystery of Red Mirth, are renowned across Vaeringheim."},
        {name = "Khalid Fenra", role = "Scholar", company = "Temple University of Delphica", cult = "Reverie Nebulous", description = "Khalid is a contemplative scholar whose studies focus on the intersection of dreams and history. His insights are often attributed to the Reverie Nebulous."},
        {name = "Evanor Tyreth", role = "Carpenter", company = "East Keltian Timber Company", cult = "Sylvan Fellowship", description = "Evanor is a talented carpenter who crafts beautiful and functional wooden pieces. His work is inspired by the natural balance celebrated by the Sylvan Fellowship."},
        {name = "Sorin Althis", role = "Guard Captain", company = "Baratar Corporation", cult = "Court of the Ironclad", description = "Sorin is a stoic guard captain who oversees Vaeringheim’s security. His disciplined leadership and loyalty to the Court of the Ironclad make him a respected figure."},
        {name = "Leona Veyar", role = "Painter", company = "Shï Collective", cult = "Order of Aurora Mystica", description = "Leona is a vibrant painter whose work captures the beauty of dawn, a reflection of her devotion to the Order of Aurora Mystica."},
        {name = "Dariel Voss", role = "Bard", company = "La Sái Ebile", cult = "Reverie Nebulous", description = "Dariel is a charismatic bard whose performances are inspired by dreams and myths, often influenced by the teachings of the Reverie Nebulous."},
        {name = "Hirin Velas", role = "Jeweler", company = "Shï Collective", cult = "Guild of Golden Shadows", description = "Hirin is a meticulous jeweler whose creations are imbued with the subtle mysteries of the Guild of Golden Shadows."},
        {name = "Zorin Kael", role = "Weaver", company = "Seamstresses of Rouge", cult = "Harmony Sanctum", description = "Zorin is a skilled weaver whose intricate patterns reflect the balance and harmony celebrated by the Harmony Sanctum."},
        {name = "Linara Theros", role = "Tea House Keeper", company = "Market Hanavusu", cult = "Mystery of the Verdant Embrace", description = "Linara is a warm and knowledgeable tea house keeper who blends teas infused with the blessings of the Mystery of the Verdant Embrace."},
        {name = "Karim Jorath", role = "Fisherman", company = "Suncliff Fisheries", cult = "Azure Sentinel Sect", description = "Karim is a jovial fisherman whose tales of the lake are as plentiful as his catches. He attributes his success to the Azure Sentinel Sect."},
        {name = "Mira Elvor", role = "Librarian", company = "Temple University of Delphica", cult = "Conclave Illuminara", description = "Mira is a meticulous librarian whose quiet demeanor belies a vast knowledge of Vaeringheim’s history and legends."},
        {name = "Rivan Pharos", role = "Trader", company = "Gladeseed Farmers' Union", cult = "Harmony Sanctum", description = "Rivan is a shrewd trader who ensures ethical practices in all his dealings, guided by the Harmony Sanctum."},
        {name = "Talia Meren", role = "Herbalist", company = "Salurian Temple of Sacred Horehound", cult = "Mystery of the Verdant Embrace", description = "Talia is a serene herbalist whose remedies are as effective as they are thoughtfully crafted, thanks to her devotion to the Mystery of the Verdant Embrace."},
        {name = "Elanor Trayn", role = "Storyteller", company = "La Sái Ebile", cult = "Reverie Nebulous", description = "Elanor is an older storyteller whose rich voice brings ancient myths and dreams to life, inspired by the Reverie Nebulous."}
    }

    local gossip = {
        "A mysterious glowing light was spotted near the Host Spirit shrine on the eastern canals.",
        "Rumors swirl of a secret underground passage connecting the Temple Bank to the artisan district.",
        "A sculptor unveiled a new statue in honor of the Azure Sentinel Sect, drawing crowds in the central square.",
        "The canals are alive with music as Vaeringheim’s Regatta Festival preparations are underway.",
        "Local merchants report that an ancient relic was discovered during canal dredging.",
        "Residents claim to have seen ghostly figures walking across the bridges late at night.",
        "The Market Hanavusu is bustling with traders showcasing rare goods from Luminaria.",
        "A historian’s lecture on the first Vaeringheim settlers drew record-breaking crowds at the Host Spirit Temple.",
        "Fishermen near Lake Morovia have reported an unprecedented bloom of phosphorescent algae.",
        "A bard’s ballad about the Reformed Stripping Path is being sung in every tavern across Vaeringheim.",
        "The Shï Collective has unveiled an intricate golden amulet said to bring clarity to the wearer’s dreams.",
        "An eccentric inventor claims to have created a device that will purify the canal water.",
        "The Lantern Lighting Ceremony in honor of the Host Spirit saw its largest crowd this year.",
        "Vaeringheim’s artisans are creating a mural depicting the ancient myths of the Azure Sentinel Sect.",
        "The Merchant’s Guild debates the construction of a new trade outpost on the eastern canals.",
        "Fishermen report a sudden increase in their hauls, calling it a blessing from the Host Spirit.",
        "Pilgrims arriving in Vaeringheim claim to have had vivid dreams of Atos guiding them.",
        "The city council has approved funding for the restoration of the oldest bridge in Vaeringheim.",
        "An alchemist revealed a new elixir crafted from Atterian Armored Pufferfish scales, sparking interest from traders.",
        "Vaeringheim’s central square is being prepared for the Lightfall Festival, with lanterns and flowers.",
        "A rogue trader was caught attempting to sell counterfeit artifacts from the Host Spirit Temple.",
        "The canals are being cleaned for the upcoming festival, revealing forgotten relics beneath the water.",
        "The Shï Collective is hosting a workshop on crafting sacred jewelry at the artisan district.",
        "A scholar claims the Host Spirit shrine holds hidden runes that predict the future.",
        "Vaeringheim’s musicians are composing a symphony to honor the Regatta Festival.",
        "A fisherman claims to have caught a fish inscribed with ancient symbols near the western docks.",
        "A new variety of herbal tea from the eastern marshes is gaining popularity among the city’s elite.",
        "Residents report strange lights in the canals, sparking superstitions about the Host Spirit’s favor.",
        "A historian uncovered documents suggesting a lost temple beneath the canal district.",
        "The Lantern Lighting Ceremony is rumored to attract spirits of Vaeringheim’s founders.",
        "An artisan has crafted a stunning mosaic of Lake Morovia, now displayed in the central square.",
        "Merchants are lobbying for reduced tariffs on spices imported from Luminaria.",
        "A bard’s haunting melody about the Reformed Stripping Path has captivated audiences in every tavern.",
        "The Azure Sentinel Sect plans a public ceremony to bless the canal waters before the festival.",
        "Residents prepare for a massive parade featuring floats inspired by the myths of the Host Spirit.",
        "A sculptor’s depiction of the Azure Sentinel Sect’s blessing rituals has drawn widespread praise.",
        "Pilgrims claim the canals themselves whisper prayers to the Host Spirit during the night.",
        "Vaeringheim’s tea houses are experimenting with new blends that incorporate rare herbs from Lake Morovia.",
        "The Merchant’s Guild is debating the introduction of steam-powered boats in the canal network.",
        "A ghost ship was reportedly sighted drifting near the northern docks during the early hours of dawn.",
        "A controversial play about the founding of Vaeringheim premiered at the main theater last night.",
        "The central square is abuzz with excitement over a new mural depicting the Reformed Stripping Path.",
        "A new canal section linking Vaeringheim to Lunalis Sancta is nearing completion, promising faster trade routes."
    }

    local dateInfo = p.getCurrentDate()
    local npc = npcs[math.random(#npcs)]
    local story = gossip[math.random(#gossip)]

    local entry = string.format(
        "Date: %d %s, %s PSSC | Reporter: %s (%s, %s, %s) | Gossip: %s",
        dateInfo.day,
        dateInfo.month,
        dateInfo.year,
        npc.name,
        npc.role,
        npc.company,
        npc.cult,
        story
    )

    return entry
end

function p.generate(frame)
    return p.generateSingleGossip()
end

return p