Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearRacesForTesting ¶
func ClearRacesForTesting()
ClearRacesForTesting removes all races from the map. This should only be used in test cleanup.
func SetRaceForTesting ¶
func SetRaceForTesting(race *Race)
SetRaceForTesting allows test code to inject race data directly. This should only be used in test code.
Types ¶
type Race ¶
type Race struct {
RaceId int
Name string
Description string
DefaultAlignment int8
BuffIds []int // Permabuffs this race always has
Size Size
TNLScale float32
UnarmedName string
Tameable bool
Damage items.Damage
Selectable bool
AngryCommands []string // randomly chosen to queue when they are angry/entering combat.
KnowsFirstAid bool // Whether they can apply aid to other players.
Stats stats.Statistics // Base stats for this race.
DisabledSlots []string `yaml:"disabledslots,omitempty"`
}
func (Race) GetEnabledSlots ¶
Click to show internal directories.
Click to hide internal directories.