Effect Modification - DragonSurvivalTeam/DragonSurvival GitHub Wiki

Description

An effect modification is a persistent modifier that increases the duration or amplifier of a list of target effects. It also uses a Modification subtype to determine how to modify the duration or amplifier.

Dependencies

  1. DurationInstanceBase

Modification

A modification contains a type (either additive or multiplicative) and amount to modify the MobEffect by.

Schema

{
    "type": [ModificationType]          // [Mandatory] || The modification type. Either "additive" or "multiplicative".
    "amount": [LevelBasedValue]         // [Mandatory] || The amount to modify the effect by.
}

Schema

{
    "base": [DurationInstanceBase]             // [Mandatory]  || Base data for the duration instance.
    "effects": [MobEffect]                     // [Mandatory] || The list of mob effects to apply the modification to
    "duration_modification": [Modification]    // [Mandatory] || The amount to modify the duration by
    "amplifier_modification": [Modification]   // [Mandatory] || The amount to modify the amplifier by
}