Class: Contest::Effects::MoreSensitiveToJam

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

Overview

Class describing an effect that doubles the effect of jam received for one turn

Instance Attribute Summary

Attributes inherited from EffectBase

#contestant, #counter, #logic

Instance Method Summary collapse

Methods inherited from EffectBase

#appeal_modifier, #dead?, #kill, #on_delete, #on_jam, #update_counter

Constructor Details

#initialize(logic, contestant) ⇒ MoreSensitiveToJam

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



211
212
# File 'docs/6_Contest_06_Effects.rb', line 211

def initialize(logic, contestant)
end

Instance Method Details

#jam_modifier(skill) ⇒ Integer

Function modifying the amount of jam received

Parameters:

Returns:

  • (Integer) —

    The jam points modification to apply



216
217
# File 'docs/6_Contest_06_Effects.rb', line 216

def jam_modifier(skill)
end

#name ⇒ Symbol

Function giving the name of the effect

Returns:

  • (Symbol)


220
221
# File 'docs/6_Contest_06_Effects.rb', line 220

def name
end