> For the complete documentation index, see [llms.txt](/llms.txt)

# Buffs

Temporarily scales what a service hands out, targeted by action or model and limited to a period.




**이 데모에 대하여**

데모는 익명 계정으로 자동 로그인합니다. 이 계정은 쇼룸의 모든 데모에서 공유되므로 한 데모에서 얻은 아이템이나 재화가 다른 데모에도 반영됩니다. 로딩에 약간 시간이 걸립니다. 화면이 작다면 새 탭에서 열어 사용해 보세요.

## 개요

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).
1. 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.
1. Press **Receive**; the doubled reward goes into **Free balance** under **Where the coins land**.
1. 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](/ko/microservices/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](/ko/microservices/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](/ko/microservices/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](/ko/microservices/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](/ko/microservices/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** 를 선택하고 아래 패키지를 입력합니다.

```text
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`

## 소스 코드

- 데모 프로젝트: <https://github.com/gs2io/gs2-studio-package/tree/main/micro-economy-buff/live-demo>
- 기능 패키지: <https://github.com/gs2io/gs2-studio-package/tree/main/micro-economy-buff>



