Master Data Reference of GS2-Buff

{
  "version": "2024-04-15",
  "buffEntryModels": [
    {
      "name": "[string]Buff entity name",
      "metadata": "[string?]metadata",
      "targetType": "[string]Type of target to apply buff",
      "targetModel": {
        "targetModelName": "[string]Types of model to apply buffs",
        "targetFieldName": "[string]Field name to which the buff is applied",
        "conditionGrns": [
          {
            "targetModelName": "[string]Buff application condition model name",
            "targetGrn": "[string]Buff application condition GRN"
          }
        ],
        "rate": "[float]Rate"
      },
      "targetAction": {
        "targetActionName": "[string]Types of action to apply buffs",
        "targetFieldName": "[string]Field name to which the buff is applied",
        "conditionGrns": [
          {
            "targetModelName": "[string]Buff application condition model name",
            "targetGrn": "[string]Buff application condition GRN"
          }
        ],
        "rate": "[float]Rate"
      },
      "expression": "[string]Application type of buff",
      "priority": "[int]Priority of buff application",
      "applyPeriodScheduleEventId": "[string?]Event ID to apply buff"
    }
  ]
}
TypeConditionRequireDefaultLimitationDescription
version2024-04-15Format version of master data
buffEntryModelsList<BuffEntryModel>~ 100 itemsBuff Model

BuffTargetModel

Buff Target Model

TypeConditionRequireDefaultLimitationDescription
targetModelNameenum [
]
~ 128 charsTypes of model to apply buffs
targetFieldNamestring~ 64 charsField name to which the buff is applied
conditionGrnsList<BuffTargetGrn>1 ~ 10 itemsList of buff application condition GRNs
ratefloat~ 100Rate

BuffTargetAction

Buff Target Action

TypeConditionRequireDefaultLimitationDescription
targetActionNameenum [
]
~ 128 charsTypes of action to apply buffs
targetFieldNamestring~ 64 charsField name to which the buff is applied
conditionGrnsList<BuffTargetGrn>1 ~ 10 itemsList of buff application condition GRNs
ratefloat~ 100Rate

BuffTargetGrn

Buff Target GRN pattern

TypeConditionRequireDefaultLimitationDescription
targetModelNamestring~ 64 charsBuff application condition model name
targetGrnstring~ 1024 charsBuff application condition GRN

BuffEntryModel

Buff Model

The amount of buff is managed by BuffEntryModel, and it is possible to associate multiple BuffEntryModels with a specific entry. The application order of BuffEntryModel is managed by the priority of BuffEntryModel, and the smaller the value of priority, the higher the priority.

There are two types of buff application methods, “Add” and “Mul”. Add is an instruction to add to the buff application rate, and Mul is an instruction to multiply the buff application rate. The default rate is 1.0, and setting Add 0.2 will make the buff application rate 1.2. Setting Mul 0.5 will make the buff application rate 0.5 times.

BuffEntryModel can be associated with events of GS2-Schedule, and it is possible to set to apply buffs only during the event holding period.

TypeConditionRequireDefaultLimitationDescription
buffEntryModelIdstring~ 1024 charsBuff entity model GRN
namestring~ 128 charsBuff entity name
metadatastring~ 2048 charsmetadata
targetTypeenum [
“model”,
“action”
]
~ 128 charsType of target to apply buff
targetModelBuffTargetModel{targetType} == “model”Model to apply buff
targetActionBuffTargetAction{targetType} == “action”Action to apply buff
expressionenum [
“add”,
“mul”
]
~ 128 charsApplication type of buff
priorityint~ 2147483646Priority of buff application
applyPeriodScheduleEventIdstring~ 1024 charsEvent ID to apply buff