Module: Battle::Effects::Mechanics::Mark
- Included in:
- HelpingHand::Mark, LeechSeed::Mark
- Defined in:
- scripts/01600 Alpha 25 Battle Engine/04000 Effects/00001 Mechanics/00100 Mark.rb
Overview
Effect linked to another, if the other die, this one dies too.
*Requirement*
-
Call initialize_mark
Instance Attribute Summary collapse
-
#mark_origin ⇒ EffectBase
readonly
Get the origin mark.
Instance Method Summary collapse
-
#dead? ⇒ Boolean
(also: #mark_dead?)
Tell if the effect is dead.
-
#initialize_mark(origin)
Initialize the mechanic.
Instance Attribute Details
#mark_origin ⇒ EffectBase (readonly)
Get the origin mark
11 12 13 |
# File 'scripts/01600 Alpha 25 Battle Engine/04000 Effects/00001 Mechanics/00100 Mark.rb', line 11 def mark_origin @mark_origin end |
Instance Method Details
#dead? ⇒ Boolean Also known as: mark_dead?
Tell if the effect is dead
21 22 23 |
# File 'scripts/01600 Alpha 25 Battle Engine/04000 Effects/00001 Mechanics/00100 Mark.rb', line 21 def dead? super || @mark_origin.dead? end |
#initialize_mark(origin)
Initialize the mechanic
15 16 17 |
# File 'scripts/01600 Alpha 25 Battle Engine/04000 Effects/00001 Mechanics/00100 Mark.rb', line 15 def initialize_mark(origin) @mark_origin = origin end |