Buffs

개요

This demo uses GS2-Buff to double idle rewards only while a campaign is running. The campaign is a window opened by a GS2-Schedule trigger, and it lasts 24 hours once started. The buff is applied at the moment you receive, so pressing Receive during the campaign doubles everything built up until then.

체험 방법

  1. Press Advance one hour under Idle rewards to move your clock forward an hour, so To receive builds up an hour of idle rewards (105 coins).
  2. Press Start campaign under Double idle rewards campaign. Status changes to Running: idle rewards are doubled when you receive, Ends counts down to the end 24 hours later, and To receive doubles too.
  3. Press Receive; the doubled reward goes into Free balance under Where the coins land.
  4. Press End campaign to stop the campaign; Status goes back to No campaign running. Advance the clock again and Receive to see only the normal amount paid.

The campaign shares the happy-hour trigger with the Scheduling demo. The account is shared by every showroom demo in the same browser, so pressing Pull there also starts the campaign here, and a clock moved with the advance buttons carries over to the other demos.

사용하는 GS2 서비스

  • GS2-Buff: The GS2-Buff entry double-idle multiplies the GS2-Idle category’s rewards (its acquireActions) by 2. It applies during the GS2-Schedule event happy-hour, and the page applies the buff before receiving.
  • GS2-Idle: GS2-Idle works out and grants the idle rewards, 5 coins every 5 minutes (50 every hour) for up to 8 hours; the buff scales these rewards.
  • GS2-Schedule: The GS2-Schedule relative event happy-hour is the campaign window; it is open only while the player’s own trigger is pulled.
  • GS2-Exchange: Free GS2-Exchange rates define starting the campaign (pulling the trigger for 86,400 seconds) and ending it (deleting the trigger), run by Start campaign and End campaign.
  • GS2-Money2: Idle rewards are deposited as free currency into a GS2-Money2 wallet (slot 0), shown as Free balance.

GS2 Studio에서 사용하기

GS2 Studio의 Simple 모드에서 Add features 를 열고 Buffs 의 Add 를 누르면 이 기능을 자신의 프로젝트에 가져올 수 있습니다. 패키지를 직접 지정하려면 Add from GitHub 를 선택하고 아래 패키지를 입력합니다.

https://github.com/gs2io/gs2-studio-package/tree/main/micro-economy-buff/packages/micro-economy-buff
  • Owner: gs2io
  • Repository: gs2-studio-package
  • Subdirectory: micro-economy-buff/packages/micro-economy-buff

소스 코드