condition

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: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Blind     Condition = iota // sight 0, your attack miss 50%
	Invisible                  // other ao cannot see you, attack to you miss 50%
	Burden                     // weight limit reduced
	Float                      // no pickup, no interact to fieldobj, overload half, no slip on slippery tile
	Greasy                     // drop equiped carryobj randomly, increase drop carryobject on dead
	Drunken                    // move/attack dir changed randomly
	Sleep                      // cannot act except killself
	Contagion                  // make contagion other near(5x5)
	Slow                       // need actionpoint doubled
	Haste                      // need actionpoint halfed

	Condition_Count int = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition uint8

func String2Condition

func String2Condition(s string) (Condition, bool)

func (Condition) Color

func (cn Condition) Color() htmlcolors.Color24

func (Condition) CommentString

func (e Condition) CommentString() string

func (Condition) HideOther

func (cn Condition) HideOther() bool

func (Condition) HideSelf

func (cn Condition) HideSelf() bool

func (Condition) Probability

func (cn Condition) Probability() float64

Probability effect probability

func (Condition) Rune

func (cn Condition) Rune() string

func (Condition) String

func (e Condition) String() string

Jump to

Keyboard shortcuts

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