artifact

package
v0.0.0-...-29f7fc1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	Type   ArtifactType
	Image  int
	Name   string
	Powers []Power
}

func ShowCreateArtifactScreen

func ShowCreateArtifactScreen(yield coroutine.YieldFunc, cache *lbx.LbxCache, creationType CreationScreen, draw *func(*ebiten.Image)) (*Artifact, bool)

returns the artifact that was created and true, * otherwise false for cancelled

func (*Artifact) AddPower

func (artifact *Artifact) AddPower(power Power)

func (*Artifact) Cost

func (artifact *Artifact) Cost() int

func (*Artifact) DefenseBonus

func (artifact *Artifact) DefenseBonus() int

func (*Artifact) MeleeBonus

func (artifact *Artifact) MeleeBonus() int

func (*Artifact) RangedAttackBonus

func (artifact *Artifact) RangedAttackBonus() int

func (*Artifact) RemovePower

func (artifact *Artifact) RemovePower(remove Power)

func (*Artifact) ResistanceBonus

func (artifact *Artifact) ResistanceBonus() int

type ArtifactSlot

type ArtifactSlot int
const (
	ArtifactSlotMeleeWeapon ArtifactSlot = iota
	ArtifactSlotRangedWeapon
	ArtifactSlotMagicWeapon
	ArtifactSlotAnyWeapon
	ArtifactSlotArmor
	ArtifactSlotJewelry
)

func (ArtifactSlot) CompatibleWith

func (slot ArtifactSlot) CompatibleWith(kind ArtifactType) bool

func (ArtifactSlot) ImageIndex

func (slot ArtifactSlot) ImageIndex() int

the index in itemisc.lbx for this slot

type ArtifactType

type ArtifactType int
const (
	ArtifactTypeNone ArtifactType = iota
	ArtifactTypeSword
	ArtifactTypeMace
	ArtifactTypeAxe
	ArtifactTypeBow
	ArtifactTypeStaff
	ArtifactTypeWand
	ArtifactTypeMisc
	ArtifactTypeShield
	ArtifactTypeChain
	ArtifactTypePlate
)

func (ArtifactType) Name

func (a ArtifactType) Name() string

type CreationScreen

type CreationScreen int

the screen can be invoked as either the 'Enchant Item' spell or 'Create Artifact'

const (
	CreationEnchantItem CreationScreen = iota
	CreationCreateArtifact
)

type Power

type Power interface {
	String() string
	Cost() int
	GetAmount() int
}

type PowerAttack

type PowerAttack struct {
	Amount int
}

func (*PowerAttack) Cost

func (p *PowerAttack) Cost() int

func (*PowerAttack) GetAmount

func (p *PowerAttack) GetAmount() int

func (*PowerAttack) String

func (p *PowerAttack) String() string

type PowerDefense

type PowerDefense struct {
	Amount int
}

func (*PowerDefense) Cost

func (p *PowerDefense) Cost() int

func (*PowerDefense) GetAmount

func (p *PowerDefense) GetAmount() int

func (*PowerDefense) String

func (p *PowerDefense) String() string

type PowerMovement

type PowerMovement struct {
	Amount int
}

func (*PowerMovement) Cost

func (p *PowerMovement) Cost() int

func (*PowerMovement) GetAmount

func (p *PowerMovement) GetAmount() int

func (*PowerMovement) String

func (p *PowerMovement) String() string

type PowerResistance

type PowerResistance struct {
	Amount int
}

func (*PowerResistance) Cost

func (p *PowerResistance) Cost() int

func (*PowerResistance) GetAmount

func (p *PowerResistance) GetAmount() int

func (*PowerResistance) String

func (p *PowerResistance) String() string

type PowerSpellCharges

type PowerSpellCharges struct {
	Spell   spellbook.Spell
	Charges int
}

func (*PowerSpellCharges) Cost

func (p *PowerSpellCharges) Cost() int

func (*PowerSpellCharges) GetAmount

func (p *PowerSpellCharges) GetAmount() int

func (*PowerSpellCharges) String

func (p *PowerSpellCharges) String() string

type PowerSpellSave

type PowerSpellSave struct {
	Amount int
}

func (*PowerSpellSave) Cost

func (p *PowerSpellSave) Cost() int

func (*PowerSpellSave) GetAmount

func (p *PowerSpellSave) GetAmount() int

func (*PowerSpellSave) String

func (p *PowerSpellSave) String() string

type PowerSpellSkill

type PowerSpellSkill struct {
	Amount int
}

func (*PowerSpellSkill) Cost

func (p *PowerSpellSkill) Cost() int

func (*PowerSpellSkill) GetAmount

func (p *PowerSpellSkill) GetAmount() int

func (*PowerSpellSkill) String

func (p *PowerSpellSkill) String() string

type PowerToHit

type PowerToHit struct {
	Amount int
}

func (*PowerToHit) Cost

func (p *PowerToHit) Cost() int

func (*PowerToHit) GetAmount

func (p *PowerToHit) GetAmount() int

func (*PowerToHit) String

func (p *PowerToHit) String() string

Jump to

Keyboard shortcuts

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