FANDOM


Locked page!


Fireflies are the cute little guys you see flying around Firefly Forest.

Firefly-0

To obtain them, tap to the bottom-left of the screen right next to the Firefly, and a message should come up saying you got the Firefly. After 99 Fireflies, you can no longer trade them in. After catching 99, they no longer appear.

Rewards:

5: 10 Confetti

10: 10 Fireworks

25: Bee Hat

50: Bee Suit

75: 5 Confetti

99: Swarm of Bees(used as a wand)

Snippet of code:

  Prodigy.extends(Prodigy.Forest, Prodigy.Zone, {
  constructor : Prodigy.Forest,
  placeDaily : function (e, t, i) {
  (1 === this.getState("hasdaily") || Util.isDefined(this.getQuestState()) && this.getQuestState().ID > 1 && this.getQuestState().ID > 1) && t.prodigy.player.backpack.hasItem("item", 78) < 99 && (this.firefly = e.addFireflyEvent(t, i, 1260 * Math.random(), 700 * Math.random(), 100, 100, this.fireflyOnClick.bind(this, t, i, e), null))
  },
  placeAllDailies : function () {},
  fireflyOnClick : function (e, t, i) {
  var a = e.prodigy.event.create();
  a.validPath(t.user, t.path, this.firefly.x, this.firefly.y + 100),
  a.set(t.user, "evtProc", !0),
  a.function (this.interactFirefly.bind(this, e, t, i)), a.set(t.user, "evtProc", !1), a.start()
  },
  interactFirefly : function (e, t, i) {
  if (0 === this.firefly.moving && Math.abs(t.user.x - this.firefly.x) < 100 && Math.abs(this.firefly.y + 100 - t.user.y) < 100) {
  this.firefly.destroy(),
  this.game.prodigy.open.gotItem([{
  type : "item",
  ID : 78
  }
  ]);
  var a = [];
  for (var s in this.maps)
  a.push(s);
  for (var r = new Prodigy.SeededRandomGenerator(this.getState("daily").date), n = 0; 5 > n; n++)
  if (a[Math.floor(r.jumpFromStart(n) * (a.length - 1))] === i._tag) {
  var o = this.getState("daily").flags;
  o[n] = 0,
  this.setState("daily", {
  date : this.getState("daily").date,
  flags : o,
  rewards : this.getState("daily").rewards
  })
  }
  }
  }