Class: Contest::Effects::PreventJamOneTurn

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

Overview

Class describing an effect that prevent getting jammed for an entire turn

Direct Known Subclasses

PreventJamOneTime

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) ⇒ PreventJamOneTurn

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



146
147
# File 'docs/6_Contest_06_Effects.rb', line 146

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



151
152
# File 'docs/6_Contest_06_Effects.rb', line 151

def jam_modifier(skill)
end

#name ⇒ Symbol

Function giving the name of the effect

Returns:

  • (Symbol)


155
156
# File 'docs/6_Contest_06_Effects.rb', line 155

def name
end