github.com/df-mc/dragonfly@v0.9.13/server/entity/effect/strength.go (about)

     1  package effect
     2  
     3  import (
     4  	"image/color"
     5  )
     6  
     7  // Strength is a lasting effect that increases the damage dealt with melee attacks when applied to an entity.
     8  type Strength struct {
     9  	nopLasting
    10  }
    11  
    12  // Multiplier returns the damage multiplier of the effect.
    13  func (Strength) Multiplier(lvl int) float64 {
    14  	return 0.3 * float64(lvl)
    15  }
    16  
    17  // RGBA ...
    18  func (Strength) RGBA() color.RGBA {
    19  	return color.RGBA{R: 0x93, G: 0x24, B: 0x23, A: 0xff}
    20  }