Class: LZRTag::Hook::Regenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/lzrtag/hooks/standard_hooks.rb

Instance Method Summary collapse

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, **options)
	super(handler);

	@regRate = options[:regRate] || 1;
	@regDelay = options[:regDelay] || 10;

	@healDead = options[:healDead] || false;
	@autoReviveThreshold = options[:autoReviveThreshold] || 30;

	@teamFilter = options[:teamFilter] || (0..7).to_a
	@phaseFilter = options[:phaseFilter] || [:running]
end