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"
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"