Class: Lich::Gemstone::Combat::Definitions::Outcomes::OutcomeDef

Inherits:
Struct
  • Object
show all
Defined in:
documented/gemstone/combat/defs/outcomes.rb

Overview

One outcome category and the game lines that signal it.

Instance Attribute Summary collapse

Instance Attribute Details

#patterns ⇒ Array<Regexp>

Returns lines that signal this outcome; may carry named captures (target, attacker, weapon, armor).

Returns:

  • (Array<Regexp>) —

    lines that signal this outcome; may carry named captures (target, attacker, weapon, armor)



21
# File 'documented/gemstone/combat/defs/outcomes.rb', line 21

OutcomeDef = Struct.new(:type, :patterns)

#type ⇒ Symbol

Returns outcome category (:miss, :hit, :evade, ...).

Returns:

  • (Symbol) —

    outcome category (:miss, :hit, :evade, ...)



21
# File 'documented/gemstone/combat/defs/outcomes.rb', line 21

OutcomeDef = Struct.new(:type, :patterns)