import { authWithHeaders } from '../../middlewares/auth'; const api = {}; // @TODO export this const, cannot export it from here because only routes are exported from // controllers const LAST_ANNOUNCEMENT_TITLE = 'SPRING FLING BEGINS! LIMITED EDITION EQUIPMENT, SEASONAL SHOP, AND MAGIC HATCHING POTIONS!'; const worldDmg = { // @TODO bailey: false, }; /** * @api {get} /api/v3/news Get latest Bailey announcement * @apiName GetNews * @apiGroup News * * * @apiSuccess {Object} html Latest Bailey html * */ api.getNews = { method: 'GET', url: '/news', async handler (req, res) { const baileyClass = worldDmg.bailey ? 'npc_bailey_broken' : 'npc_bailey'; res.status(200).send({ html: `
From now until April 30th, limited edition outfits are available in the Rewards column! Depending on your class, you can be a Rhinoceros Beetle Warrior, Iris Healer, Lapis Lazuli Rogue, or Puddle Mage. You'd better get productive to earn enough Gold before your time runs out...
The Seasonal Shop has opened! It's stocking springtime Seasonal Edition goodies at the moment, including past spring outfits. Everything there will be available to purchase during the Spring Fling event each year, but it's only open until April 30th, so be sure to stock up now, or you'll have to wait a year to buy these items again!
There's a new pet breed in town! Check out the brand-new Birch Bark Potions and the return of Shimmer and Celestial Potions to brighten your Spring avatar look from the Market and use them to hatch any standard pet egg. (Magic Hatching Potions do not work on Quest Pet eggs.) Magic Hatching Potion Pets aren't picky, so they'll happily eat any kind of food that you feed them!
These potions will be available until Spring Fling ends on April 30. After they're gone, it will be at least a year before these Hatching Potions return, so be sure to get them now!