combat

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: GPL-2.0 Imports: 0 Imported by: 5

Documentation

Overview

Package combat provides type definitions for combat-related constants. These types are used by rulebooks to define attack types, weapon properties, armor categories, and action types without the toolkit knowing specifics.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionType

type ActionType string

ActionType identifies what kind of action something requires. Example: const ActionStandard ActionType = "action"

const (
	ActionStandard ActionType = "action"
	ActionBonus    ActionType = "bonus_action"
	ActionReaction ActionType = "reaction"
	ActionFree     ActionType = "free"
	ActionMovement ActionType = "movement"
)

Common action types

type ArmorType

type ArmorType string

ArmorType identifies categories of armor. Example: const ArmorLight ArmorType = "light"

const (
	ArmorNone    ArmorType = "none"
	ArmorLight   ArmorType = "light"
	ArmorMedium  ArmorType = "medium"
	ArmorHeavy   ArmorType = "heavy"
	ArmorShield  ArmorType = "shield"
	ArmorNatural ArmorType = "natural"
)

Common armor types

type AttackType

type AttackType string

AttackType identifies the type of attack being made. Example: const MeleeWeapon AttackType = "melee_weapon"

const (
	AttackMeleeWeapon  AttackType = "melee_weapon"
	AttackRangedWeapon AttackType = "ranged_weapon"
	AttackMeleeSpell   AttackType = "melee_spell"
	AttackRangedSpell  AttackType = "ranged_spell"
	AttackSpecial      AttackType = "special"
)

Common attack types used in many systems

type WeaponProperty

type WeaponProperty string

WeaponProperty identifies special properties of weapons. Example: const PropertyFinesse WeaponProperty = "finesse"

Jump to

Keyboard shortcuts

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