Skip to content

[Enhancement] Make some adjustments to defense values #229

@goflishMC

Description

@goflishMC

See the commented section in the defense-types example below:

  defense-types:
    minimum: 7
    maximum: 7
    lore-format:
    - '%DEFENSE_SLASHING%'
    - '%DEFENSE_PIERCING%'
    - '%DEFENSE_BLUDGEONING%'
    - '%DEFENSE_PHYSICAL%'
    - §8--------------------
    - '%DEFENSE_COLD%'
    - '%DEFENSE_FIRE%'
    - '%DEFENSE_POISON%'
    - '%DEFENSE_LIGHTNING%'
    - '%DEFENSE_RADIANT%'
    - '%DEFENSE_NECROTIC%'
    - '%DEFENSE_THUNDER%'
    - '%DEFENSE_FORCE%'
    - '%DEFENSE_PSYCHIC%'
    list:
      physical:
        chance: 20.0
        scale-by-level: 1.0
        min: 1.0
        max: 4.0
        #If true, this would give 1-4
        #defense on each hit taken
        flat-range: true
        #If true, sets the damage value
        #to integers. (no decimals like 1.254)
        round: true
      fire:
        chance: 20.0
        scale-by-level: 1.0
        min: 0.0
        max: 0.0
        #If true, this would give 1-4
        #defense on each hit taken
        flat-range: true
        #If flat-range is false and
        #round is true, this will round
        #defense
        round: true

flat-range and round are features for damage-types, this will add the feature to defense also

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions