Class: Contest::Effects::RaisedCondition

Inherits:
EffectBase show all
Defined in:
docs/6_Contest_06_Effects.rb

Overview

Class describing an effect that raises the condition level of a creature

Instance Attribute Summary collapse

Attributes inherited from EffectBase

#contestant, #counter, #logic

Instance Method Summary collapse

Methods inherited from EffectBase

#dead?, #jam_modifier, #kill, #on_delete, #on_jam

Constructor Details

#initialize(logic, contestant) ⇒ RaisedCondition

Create a new effect

Parameters:

  • logic (Contest::Logic) —

    Logic used to get all the handler in order to allow the effect to work

  • contestant (ContestCreature) —

    Contestant that has this effect



178
179
# File 'docs/6_Contest_06_Effects.rb', line 178

def initialize(logic, contestant)
end

Instance Attribute Details

#activated ⇒ Boolean (readonly)

Is the effect activated?

Returns:

  • (Boolean)


174
175
176
# File 'docs/6_Contest_06_Effects.rb', line 174

def activated
  @activated
end

Instance Method Details

#appeal_modifier(_launcher, skill) ⇒ Integer

Function modifying the amount of appeal points gained

Parameters:

Returns:

  • (Integer) —

    The appeal points modification to apply



187
188
# File 'docs/6_Contest_06_Effects.rb', line 187

def appeal_modifier(_launcher, skill)
end

#name ⇒ Symbol

Function giving the name of the effect

Returns:

  • (Symbol)


191
192
# File 'docs/6_Contest_06_Effects.rb', line 191

def name
end

#update_counter

Function that updates the counter of the effect



181
182
# File 'docs/6_Contest_06_Effects.rb', line 181

def update_counter
end