data

package
v0.0.0-...-f01e09b Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ScreenHeightOriginal = 200
View Source
const ScreenWidthOriginal = 320

Variables

View Source
var ScreenScale = 3
View Source
var ScreenScaleAlgorithm = ScaleAlgorithmNormal

Functions

func GetMagicColor

func GetMagicColor(magic MagicType) color.RGBA

Types

type Ability

type Ability struct {
	Ability AbilityType
	Value   float32
	// contains filtered or unexported fields
}

func MakeAbility

func MakeAbility(ability AbilityType) Ability

func MakeAbilityValue

func MakeAbilityValue(ability AbilityType, value float32) Ability

func (Ability) LbxFile

func (ability Ability) LbxFile() string

the file that stores the icon for this ability

func (Ability) LbxIndex

func (ability Ability) LbxIndex() int

the index in the lbx file for this icon

func (Ability) Name

func (ability Ability) Name() string

func (Ability) String

func (ability Ability) String() string

type AbilityType

type AbilityType int
const (
	AbilityNone AbilityType = iota
	// unit abilities
	AbilityArmorPiercing
	AbilityCauseFear
	AbilityColdImmunity
	AbilityConstruction
	AbilityCreateOutpost
	AbilityCreateUndead
	AbilityDeathGaze
	AbilityDeathImmunity
	AbilityDispelEvil
	AbilityDoomBoltSpell
	AbilityDoomGaze
	AbilityDeathTouch
	AbilityFireballSpell
	AbilityFireBreath
	AbilityFireImmunity
	AbilityFirstStrike
	AbilityForester
	AbilityHealer
	AbilityHealingSpell
	AbilityHolyBonus
	AbilityIllusion
	AbilityIllusionsImmunity
	AbilityImmolation
	AbilityInvisibility
	AbilityLargeShield
	AbilityLifeSteal
	AbilityLightningBreath
	AbilityLongRange
	AbilityMagicImmunity
	AbilityMeld
	AbilityMerging
	AbilityMissileImmunity
	AbilityMountaineer
	AbilityNegateFirstStrike
	AbilityNonCorporeal
	AbilityPathfinding
	AbilityPlaneShift
	AbilityPoisonImmunity
	AbilityPoisonTouch
	AbilityPurify
	AbilityRegeneration
	AbilityResistanceToAll
	AbilityScouting
	AbilityStoningGaze
	AbilityStoningImmunity
	AbilityStoningTouch
	AbilitySummonDemons
	AbilityToHit
	AbilityTransport
	AbilityTeleporting
	AbilityThrown
	AbilityWallCrusher
	AbilityWeaponImmunity
	AbilityWebSpell
	AbilityWindWalking

	// hero abilities
	AbilityAgility
	AbilitySuperAgility
	AbilityArcanePower
	AbilitySuperArcanePower
	AbilityArmsmaster
	AbilitySuperArmsmaster
	AbilityBlademaster
	AbilitySuperBlademaster
	AbilityCaster
	AbilityCharmed
	AbilityConstitution
	AbilitySuperConstitution
	AbilityLeadership
	AbilitySuperLeadership
	AbilityLegendary
	AbilitySuperLegendary
	AbilityLucky
	AbilityMight
	AbilitySuperMight
	AbilityNoble
	AbilityPrayermaster
	AbilitySuperPrayermaster
	AbilitySage
	AbilitySuperSage
)

type BannerType

type BannerType int
const (
	BannerGreen BannerType = iota
	BannerBlue
	BannerRed
	BannerPurple
	BannerYellow
	BannerBrown
)

func (BannerType) String

func (banner BannerType) String() string

type BonusType

type BonusType int
const (
	BonusNone BonusType = iota
	BonusWildGame
	BonusNightshade
	BonusSilverOre
	BonusGoldOre
	BonusIronOre
	BonusCoal
	BonusMithrilOre
	BonusAdamantiumOre
	BonusGem
	BonusQuorkCrystal
	BonusCrysxCrystal
)

func (BonusType) FoodBonus

func (bonus BonusType) FoodBonus() int

func (BonusType) GoldBonus

func (bonus BonusType) GoldBonus() int

func (BonusType) PowerBonus

func (bonus BonusType) PowerBonus() int

func (BonusType) String

func (bonus BonusType) String() string

func (BonusType) UnitReductionBonus

func (bonus BonusType) UnitReductionBonus() int

returns a percent that unit costs are reduced by, 10 -> -10%

type CityEnchantment

type CityEnchantment int

city enchantments (also called Town Enchantments)

const (
	CityEnchantmentNone CityEnchantment = iota
	CityEnchantmentAltarOfBattle
	CityEnchantmentAstralGate
	CityEnchantmentChaosRift
	CityEnchantmentCloudOfShadow
	CityEnchantmentConsecration
	CityEnchantmentCursedLands
	CityEnchantmentDarkRituals
	CityEnchantmentEarthGate
	CityEnchantmentEvilPresence
	CityEnchantmentFamine
	CityEnchantmentFlyingFortress
	CityEnchantmentGaiasBlessing
	CityEnchantmentHeavenlyLight
	CityEnchantmentInspirations
	CityEnchantmentNaturesEye
	CityEnchantmentPestilence
	CityEnchantmentProsperity
	CityEnchantmentLifeWard
	CityEnchantmentSorceryWard
	CityEnchantmentNatureWard
	CityEnchantmentDeathWard
	CityEnchantmentChaosWard
	CityEnchantmentStreamOfLife
	CityEnchantmentWallOfDarkness
	CityEnchantmentWallOfFire
	CityEnchantmentWallOfStone
)

func (CityEnchantment) IconOffset

func (enchantment CityEnchantment) IconOffset() int

this is the offset in the city view of where to draw the enchantment sprite for enchantments that have 'normal' buildings associated with them (such as altar of battle), this is not needed

func (CityEnchantment) LbxIndex

func (enchantment CityEnchantment) LbxIndex() int

func (CityEnchantment) Name

func (enchantment CityEnchantment) Name() string

func (CityEnchantment) SoundIndex

func (enchantment CityEnchantment) SoundIndex() int

func (CityEnchantment) SpellName

func (enchantment CityEnchantment) SpellName() string

func (CityEnchantment) UpkeepMana

func (enchantment CityEnchantment) UpkeepMana() int

type CombatEnchantment

type CombatEnchantment int
const (
	CombatEnchantmentNone CombatEnchantment = iota
	CombatEnchantmentHighPrayer
	CombatEnchantmentPrayer
	CombatEnchantmentTrueLight
	CombatEnchantmentCallLightning
	CombatEnchantmentEntangle
	CombatEnchantmentBlur
	CombatEnchantmentCounterMagic
	CombatEnchantmentMassInvisibility
	CombatEnchantmentMetalFires
	CombatEnchantmentWarpReality
	CombatEnchantmentBlackPrayer
	CombatEnchantmentDarkness
	CombatEnchantmentManaLeak
	CombatEnchantmentTerror
	CombatEnchantmentWrack
)

func (CombatEnchantment) LbxIndex

func (enchantment CombatEnchantment) LbxIndex() int

in compix.lbx

func (CombatEnchantment) Magic

func (enchantment CombatEnchantment) Magic() MagicType

func (CombatEnchantment) Name

func (enchantment CombatEnchantment) Name() string

type DifficultySetting

type DifficultySetting int
const (
	DifficultyIntro DifficultySetting = iota
	DifficultyEasy
	DifficultyAverage
	DifficultyHard
	DifficultyExtreme
	DifficultyImpossible
)

type Enchantment

type Enchantment int

global overland enchantments

const (
	EnchantmentNone Enchantment = iota
	EnchantmentAwareness
	EnchantmentDetectMagic
	EnchantmentCharmOfLife
	EnchantmentCrusade
	EnchantmentHolyArms
	EnchantmentJustCause
	EnchantmentLifeForce
	EnchantmentPlanarSeal
	EnchantmentTranquility
	EnchantmentHerbMastery
	EnchantmentNatureAwareness
	EnchantmentNaturesWrath
	EnchantmentAuraOfMajesty
	EnchantmentSuppressMagic
	EnchantmentTimeStop
	EnchantmentWindMastery
	EnchantmentArmageddon
	EnchantmentChaosSurge
	EnchantmentDoomMastery
	EnchantmentGreatWasting
	EnchantmentMeteorStorm
	EnchantmentEternalNight
	EnchantmentEvilOmens
	EnchantmentZombieMastery
)

func (Enchantment) LbxIndex

func (enchantment Enchantment) LbxIndex() int

the index in specfx.lbx for when this enchantment is casted

func (Enchantment) String

func (enchantment Enchantment) String() string

func (Enchantment) UpkeepMana

func (enchantment Enchantment) UpkeepMana() int

how much mana per turn this enchantment costs

type FogMap

type FogMap [][]FogType

func (FogMap) GetFog

func (fog FogMap) GetFog(x int, y int) FogType

type FogType

type FogType int
const (
	FogTypeUnexplored FogType = iota
	FogTypeExplored
	FogTypeVisible
)

type HouseType

type HouseType int
const (
	HouseTypeTree HouseType = iota
	HouseTypeHut
	HouseTypeNormal
)

type ItemAbility

type ItemAbility int
const (
	ItemAbilityNone ItemAbility = iota
	ItemAbilityVampiric
	ItemAbilityGuardianWind
	ItemAbilityLightning
	ItemAbilityCloakOfFear
	ItemAbilityDestruction
	ItemAbilityWraithform
	ItemAbilityRegeneration
	ItemAbilityPathfinding
	ItemAbilityWaterWalking
	ItemAbilityResistElements
	ItemAbilityElementalArmor
	ItemAbilityChaos
	ItemAbilityStoning
	ItemAbilityEndurance
	ItemAbilityHaste
	ItemAbilityInvisibility
	ItemAbilityDeath
	ItemAbilityFlight
	ItemAbilityResistMagic
	ItemAbilityMagicImmunity
	ItemAbilityFlaming
	ItemAbilityHolyAvenger
	ItemAbilityTrueSight
	ItemAbilityPhantasmal
	ItemAbilityPowerDrain
	ItemAbilityBless
	ItemAbilityLionHeart
	ItemAbilityGiantStrength
	ItemAbilityPlanarTravel
	ItemAbilityMerging
	ItemAbilityRighteousness
	ItemAbilityInvulnerability
)

func (ItemAbility) AbilityType

func (item ItemAbility) AbilityType() AbilityType

func (ItemAbility) Enchantment

func (item ItemAbility) Enchantment() UnitEnchantment

func (ItemAbility) LbxFile

func (item ItemAbility) LbxFile() string

func (ItemAbility) LbxIndex

func (item ItemAbility) LbxIndex() int

func (ItemAbility) MagicType

func (item ItemAbility) MagicType() MagicType

func (ItemAbility) Name

func (item ItemAbility) Name() string

type MagicSetting

type MagicSetting int
const (
	MagicSettingWeak MagicSetting = iota
	MagicSettingNormal
	MagicSettingPowerful
)

type MagicType

type MagicType int
const (
	// FIXME: Those constants are not equal to LBX ones. The proper order is Nature, Sorcery, Chaos, Life, Death, Arcane.
	MagicNone MagicType = iota
	LifeMagic
	SorceryMagic
	NatureMagic
	DeathMagic
	ChaosMagic
	ArcaneMagic
)

func (MagicType) String

func (magic MagicType) String() string

type Plane

type Plane int
const (
	PlaneArcanus Plane = iota
	PlaneMyrror
)

func (Plane) Opposite

func (plane Plane) Opposite() Plane

func (Plane) String

func (plane Plane) String() string

type PlanePoint

type PlanePoint struct {
	X     int
	Y     int
	Plane Plane
}

type Race

type Race int
const (
	RaceNone Race = iota
	RaceLizard
	RaceNomad
	RaceOrc
	RaceTroll
	RaceFantastic
	RaceHero
	RaceBarbarian
	RaceBeastmen
	RaceDarkElf
	RaceDraconian
	RaceDwarf
	RaceGnoll
	RaceHalfling
	RaceHighElf
	RaceHighMen
	RaceKlackon
	RaceAll
)

func ArcanianRaces

func ArcanianRaces() []Race

func MyrranRaces

func MyrranRaces() []Race

func (Race) HouseType

func (race Race) HouseType() HouseType

func (Race) String

func (race Race) String() string

technically 'Lizardmen' should be 'Lizardman' and 'Dwarf' should be 'Dwarven', but the help has them listed as 'Lizardmen Townsfolk' and 'Dwarf Townsfolk'

type Retort

type Retort int
const (
	RetortAlchemy Retort = iota
	RetortWarlord
	RetortChanneler
	RetortArchmage
	RetortArtificer
	RetortConjurer
	RetortSageMaster
	RetortMyrran
	RetortDivinePower
	RetortFamous
	RetortRunemaster
	RetortCharismatic
	RetortChaosMastery
	RetortNatureMastery
	RetortSorceryMastery
	RetortInfernalPower
	RetortManaFocusing
	RetortNodeMastery
	RetortNone
)

func (Retort) DependencyExplanation

func (retort Retort) DependencyExplanation() string

func (Retort) PickCost

func (retort Retort) PickCost() int

number of picks this retort costs when choosing a custom wizard

func (Retort) String

func (Retort Retort) String() string

type ScaleAlgorithm

type ScaleAlgorithm int
const (
	// the scale2x
	// https://www.scale2x.it/
	ScaleAlgorithmScale ScaleAlgorithm = iota
	ScaleAlgorithmXbr
	ScaleAlgorithmNormal
)

func (ScaleAlgorithm) String

func (algorithm ScaleAlgorithm) String() string

type TreatyType

type TreatyType int
const (
	TreatyNone TreatyType = iota
	TreatyPact
	TreatyAlliance
	TreatyWar
)

func (TreatyType) String

func (treaty TreatyType) String() string

type UnitEnchantment

type UnitEnchantment int

unit enchantments

const (
	UnitEnchantmentNone UnitEnchantment = iota
	UnitEnchantmentGiantStrength
	UnitEnchantmentLionHeart
	UnitEnchantmentHaste
	UnitEnchantmentImmolation
	UnitEnchantmentResistElements
	UnitEnchantmentResistMagic
	UnitEnchantmentElementalArmor
	UnitEnchantmentBless
	UnitEnchantmentRighteousness
	UnitEnchantmentCloakOfFear
	UnitEnchantmentTrueSight
	UnitEnchantmentPathFinding
	UnitEnchantmentFlight
	UnitEnchantmentChaosChannelsDemonWings
	UnitEnchantmentChaosChannelsDemonSkin
	UnitEnchantmentChaosChannelsFireBreath
	UnitEnchantmentEndurance
	UnitEnchantmentHeroism
	UnitEnchantmentHolyArmor
	UnitEnchantmentHolyWeapon
	UnitEnchantmentInvulnerability
	UnitEnchantmentPlanarTravel
	UnitEnchantmentIronSkin
	UnitEnchantmentRegeneration
	UnitEnchantmentStoneSkin
	UnitEnchantmentWaterWalking
	UnitEnchantmentGuardianWind
	UnitEnchantmentInvisibility
	UnitEnchantmentMagicImmunity
	UnitEnchantmentSpellLock
	UnitEnchantmentWindWalking
	UnitEnchantmentEldritchWeapon
	UnitEnchantmentFlameBlade
	UnitEnchantmentBerserk
	UnitEnchantmentBlackChannels
	UnitEnchantmentWraithForm
)

func (UnitEnchantment) Abilities

func (enchantment UnitEnchantment) Abilities() []Ability

granted abilities, if any

func (UnitEnchantment) CastAnimationIndex

func (enchantment UnitEnchantment) CastAnimationIndex() int

the index in specfx.lbx for when this enchantment is casted

func (UnitEnchantment) Color

func (enchantment UnitEnchantment) Color() color.Color

func (UnitEnchantment) LbxFile

func (enchantment UnitEnchantment) LbxFile() string

func (UnitEnchantment) LbxIndex

func (enchantment UnitEnchantment) LbxIndex() int

func (UnitEnchantment) Magic

func (enchantment UnitEnchantment) Magic() MagicType

the magic realm this enchantment belongs to

func (UnitEnchantment) Name

func (enchantment UnitEnchantment) Name() string

func (UnitEnchantment) SpellName

func (enchantment UnitEnchantment) SpellName() string

the equivalent spell that would have cast this spell

func (UnitEnchantment) UpkeepMana

func (enchantment UnitEnchantment) UpkeepMana() int

type WeaponBonus

type WeaponBonus int
const (
	WeaponNone WeaponBonus = iota
	WeaponMagic
	WeaponMythril
	WeaponAdamantium
)

type WizardBase

type WizardBase int
const (
	WizardMerlin WizardBase = iota
	WizardRaven
	WizardSharee
	WizardLoPan
	WizardJafar
	WizardOberic
	WizardRjak
	WizardSssra
	WizardTauron
	WizardFreya
	WizardHorus
	WizardAriel
	WizardTlaloc
	WizardKali
)

type WizardBook

type WizardBook struct {
	Magic MagicType
	Count int
}

the number of books a wizard has of a specific magic type

Jump to

Keyboard shortcuts

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