up3
Build and deploy / Build (push) Has been cancelled
Build and deploy / Update Contributors (push) Has been cancelled
Build and deploy / Deploy (push) Has been cancelled
Build and deploy / Build (push) Has been cancelled
Build and deploy / Update Contributors (push) Has been cancelled
Build and deploy / Deploy (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package effect
|
||||
|
||||
import (
|
||||
"image/color"
|
||||
)
|
||||
|
||||
// Strength is a lasting effect that increases the damage dealt with melee
|
||||
// attacks when applied to an entity.
|
||||
var Strength strength
|
||||
|
||||
type strength struct {
|
||||
nopLasting
|
||||
}
|
||||
|
||||
// Multiplier returns the damage multiplier of the effect.
|
||||
func (strength) Multiplier(lvl int) float64 {
|
||||
return 0.3 * float64(lvl)
|
||||
}
|
||||
|
||||
// RGBA ...
|
||||
func (strength) RGBA() color.RGBA {
|
||||
return color.RGBA{R: 0xff, G: 0xc7, B: 0x00, A: 0xff}
|
||||
}
|
||||
Reference in New Issue
Block a user