Class: LZRTag::Hook::Regenerator
- Defined in:
- lib/lzrtag/hooks/standard_hooks.rb
Instance Method Summary collapse
-
#initialize(handler, **options) ⇒ Regenerator
constructor
A new instance of Regenerator.
Methods inherited from Base
#consume_event, describe_option, getCBs, getOptionDescriptions, on, #on, #on_hookin, #on_hookout, #process_raw_hit
Constructor Details
#initialize(handler, **options) ⇒ Regenerator
Returns a new instance of Regenerator.
108 109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/lzrtag/hooks/standard_hooks.rb', line 108 def initialize(handler, **) super(handler); @regRate = [:regRate] || 1; @regDelay = [:regDelay] || 10; @healDead = [:healDead] || false; @autoReviveThreshold = [:autoReviveThreshold] || 30; @teamFilter = [:teamFilter] || (0..7).to_a @phaseFilter = [:phaseFilter] || [:running] end |