condition_flag

package
v0.0.0-...-d7572e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlindFlag     = ConditionFlag(1 << condition.Blind)     // sight 0, your attack miss 50%
	InvisibleFlag = ConditionFlag(1 << condition.Invisible) // other ao cannot see you, attack to you miss 50%
	BurdenFlag    = ConditionFlag(1 << condition.Burden)    // weight limit reduced
	FloatFlag     = ConditionFlag(1 << condition.Float)     // no pickup, no interact to fieldobj, overload half, no slip on slippery tile
	GreasyFlag    = ConditionFlag(1 << condition.Greasy)    // drop equiped carryobj randomly, increase drop carryobject on dead
	DrunkenFlag   = ConditionFlag(1 << condition.Drunken)   // move/attack dir changed randomly
	SleepFlag     = ConditionFlag(1 << condition.Sleep)     // cannot act except killself
	ContagionFlag = ConditionFlag(1 << condition.Contagion) // make contagion other near(5x5)
	SlowFlag      = ConditionFlag(1 << condition.Slow)      // need actionpoint doubled
	HasteFlag     = ConditionFlag(1 << condition.Haste)     // need actionpoint halfed
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConditionFlag

type ConditionFlag uint16

func HideOther

func HideOther() ConditionFlag

func HideSelf

func HideSelf() ConditionFlag

func (*ConditionFlag) ClearByCondition

func (bt *ConditionFlag) ClearByCondition(n condition.Condition)

func (*ConditionFlag) ClearByConditionFlag

func (bt *ConditionFlag) ClearByConditionFlag(v ConditionFlag)

func (*ConditionFlag) SetByCondition

func (bt *ConditionFlag) SetByCondition(n condition.Condition)

func (*ConditionFlag) SetByConditionFlag

func (bt *ConditionFlag) SetByConditionFlag(v ConditionFlag)

func (ConditionFlag) String

func (cf ConditionFlag) String() string

func (ConditionFlag) TestByCondition

func (bt ConditionFlag) TestByCondition(n condition.Condition) bool

func (ConditionFlag) TestByConditionFlag

func (bt ConditionFlag) TestByConditionFlag(v ConditionFlag) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL