GS2-Money2 Buff Reference
Describes the fields within models/actions whose parameters can be adjusted when applying buffs with GS2-Buff, and the scope in which those buffs are applied.
Note
See BuffEntryModel for more information on the buff entry model.Action
Types of actions that can apply buffs
Gs2Money2:DepositByUserId
Deposit balance to Wallet by specifying a user ID
Target fields for buff application
count
DepositTransaction - Deposit Transaction
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| count | int | ✓ | 0 ~ 2147483646 | Quantity of premium currency |
Example Master Data
"targetAction": {
"targetActionName": "Gs2Money2:DepositByUserId",
"targetFieldName": "count",
"conditionGrns": [
],
"rate": 1.0
}Buff Application Condition Model
Gs2Money2:Wallet
Wallet
Example Master Data
"conditionGrns": [
{
"targetModelName": "Gs2Money2:Wallet",
"targetGrn": "grn:gs2:{region}:{ownerId}:money2:{namespaceName}:user:{userId}:wallet:{slot}"
}
]Gs2Money2:Withdraw
Withdraw balance from wallet
Target fields for buff application
withdrawCount
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| withdrawCount | int | ✓ | 1 ~ 2147483646 | Quantity of premium currency to be consumed |
Example Master Data
"targetAction": {
"targetActionName": "Gs2Money2:Withdraw",
"targetFieldName": "withdrawCount",
"conditionGrns": [
],
"rate": 1.0
}Buff Application Condition Model
Gs2Money2:Wallet
Wallet
Example Master Data
"conditionGrns": [
{
"targetModelName": "Gs2Money2:Wallet",
"targetGrn": "grn:gs2:{region}:{ownerId}:money2:{namespaceName}:user:{userId}:wallet:{slot}"
}
]Gs2Money2:WithdrawByUserId
Withdraw balance from Wallet by specifying a user ID
Target fields for buff application
withdrawCount
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| withdrawCount | int | ✓ | 1 ~ 2147483646 | Quantity of premium currency to be consumed |
Example Master Data
"targetAction": {
"targetActionName": "Gs2Money2:WithdrawByUserId",
"targetFieldName": "withdrawCount",
"conditionGrns": [
],
"rate": 1.0
}Buff Application Condition Model
Gs2Money2:Wallet
Wallet
Example Master Data
"conditionGrns": [
{
"targetModelName": "Gs2Money2:Wallet",
"targetGrn": "grn:gs2:{region}:{ownerId}:money2:{namespaceName}:user:{userId}:wallet:{slot}"
}
]