Class: Contest::EffectTagMechanic::ComparePreviousAppeal

Inherits:
EffectTagMechanic
  • Object
show all
Defined in:
docs/6_Contest_05_Move.rb

Overview

Class describing the "Compare this move's appeal to the score of the previous contestant" effect tag mechanic

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#comparison_result ⇒ Symbol

Whether the appeal was better, equal or worse than the previous contestant's score

Returns:

  • (Symbol) —

    :better, :equal or :worse



463
464
465
# File 'docs/6_Contest_05_Move.rb', line 463

def comparison_result
  @comparison_result
end

Instance Method Details

#appeal_modifier ⇒ Integer

Method called to apply the appeal bonuses linked to this effect tag

Returns:

  • (Integer) —

    appeal modifications to apply



466
467
# File 'docs/6_Contest_05_Move.rb', line 466

def appeal_modifier
end

#better_late_round? ⇒ Boolean

Is this effect tag better used late in a round?

Returns:

  • (Boolean)


473
474
# File 'docs/6_Contest_05_Move.rb', line 473

def better_late_round?
end

#show_message_after

Show the message linked to this effect tag after applying it



469
470
# File 'docs/6_Contest_05_Move.rb', line 469

def show_message_after
end