baddy

package
v0.0.0-...-47a16e8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Recipes map[RecipeID]Recipe = map[RecipeID]Recipe{
	Skellington: Recipe{
		ActionPoints: 60,
		Preparation:  50,
		Name:         "Dumble",
		Sex:          game.Male,
		Profession:   "Skeleton",
		Hair:         "black",
		Skin:         "pale",
	},
	Wolf: Recipe{
		ActionPoints: 60,
		Preparation:  50,
		Name:         "Hustle",
		Sex:          game.Male,
		Profession:   "Wolf",
		Hair:         "black",
		Skin:         "pale",
	},
	Necro: Recipe{
		ActionPoints: 60,
		Preparation:  50,
		Name:         "Pabst",
		Sex:          game.Male,
		Profession:   "Necromancer",
		Hair:         "black",
		Skin:         "pale",
	},
}

Recipes is the reference of baddy recipes in the game.

Functions

This section is empty.

Types

type Recipe

type Recipe struct {
	ActionPoints int
	Preparation  int
	Name         string
	Sex          game.CharacterSex
	Profession   string
	Hair, Skin   string
}

Recipe describes a way to construct a baddy.

func (Recipe) Construct

func (recipe Recipe) Construct(rng *rand.Rand) *game.Character

Construct a baddy from a Recipe.

type RecipeID

type RecipeID int

RecipeID identifies a baddy recipe.

const (
	Skellington RecipeID = iota
	Wolf
	Necro
)

Jump to

Keyboard shortcuts

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