Files
TarnaWijaya 26ed99fda6
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
up3
2026-07-09 08:33:57 +08:00

29 lines
606 B
Go

package effect
import (
"image/color"
)
// ConduitPower is a lasting effect that grants the affected entity the ability
// to breathe underwater and allows the entity to break faster when underwater
// or in the rain. (Similarly to haste.)
var ConduitPower conduitPower
type conduitPower struct {
nopLasting
}
// Multiplier returns the mining speed multiplier from this effect.
func (conduitPower) Multiplier(lvl int) float64 {
v := 1 - float64(lvl)*0.1
if v < 0 {
v = 0
}
return v
}
// RGBA ...
func (conduitPower) RGBA() color.RGBA {
return color.RGBA{R: 0x1d, G: 0xc2, B: 0xd1, A: 0xff}
}