GS2-LoginReward Buff Reference
Describes the fields within models/actions whose parameters can be adjusted when applying buffs with GS2-Buff, and how to configure the scope in which those buffs are applied.
Note
See BuffEntryModel for more information on the buff entry model.Model
Target model types available for buff application
Gs2LoginReward:BonusModel
Login Bonus Model
Target fields for buff application
acquireActions
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| acquireActions | List<AcquireAction> | ✓ | 1 ~ 10 items | Acquire Actions List of acquire actions that define the resources granted to the user for this day’s reward. Each action specifies a acquire action (e.g., add items, grant currency) and its request parameters. At least 1 and up to 10 actions can be configured per reward. |
Example Master Data
rate specifies the multiplier applied to the target field.
"targetModel": {
"targetModelName": "Gs2LoginReward:BonusModel",
"targetFieldName": "acquireActions",
"conditionGrns": [
],
"rate": 1.0
}Buff Application Condition Model
Gs2LoginReward:BonusModel
Login Bonus Model
Example Master Data
"conditionGrns": [
{
"targetModelName": "Gs2LoginReward:BonusModel",
"targetGrn": "grn:gs2:any:any:loginReward:{namespaceName}:bonusModel:{bonusModelName}"
}
]missedReceiveReliefConsumeActions
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| missedReceiveReliefConsumeActions | List<ConsumeAction> | {missedReceiveRelief} == “enabled” | [] | 0 ~ 10 items | Missed Receive Relief Consume Actions List of consume actions that define the cost a user must pay to recover a missed bonus. For example, this can be configured to consume in-game currency or items as the recovery cost. Up to 10 actions can be configured. Only applicable when missedReceiveRelief is enabled. * Applicable only if missedReceiveRelief is “enabled” |
Example Master Data
rate specifies the multiplier applied to the target field.
"targetModel": {
"targetModelName": "Gs2LoginReward:BonusModel",
"targetFieldName": "missedReceiveReliefConsumeActions",
"conditionGrns": [
],
"rate": 1.0
}Buff Application Condition Model
Gs2LoginReward:BonusModel
Login Bonus Model
Example Master Data
"conditionGrns": [
{
"targetModelName": "Gs2LoginReward:BonusModel",
"targetGrn": "grn:gs2:any:any:loginReward:{namespaceName}:bonusModel:{bonusModelName}"
}
]