Class: Termfront::Weapon::ShockRifle
- Inherits:
-
Base
- Object
- Base
- Termfront::Weapon::ShockRifle
show all
- Defined in:
- lib/termfront/weapon/shock_rifle.rb
Instance Attribute Summary
Attributes inherited from Base
#ammo
Instance Method Summary
collapse
Methods inherited from Base
build, #can_fire?, #consume_ammo!, #infinite_ammo?, #initialize, register, registry
Instance Method Details
#cooldown ⇒ Object
8
|
# File 'lib/termfront/weapon/shock_rifle.rb', line 8
def cooldown = 0.15
|
#hit_width ⇒ Object
9
|
# File 'lib/termfront/weapon/shock_rifle.rb', line 9
def hit_width = 0.5
|
#max_ammo ⇒ Object
7
|
# File 'lib/termfront/weapon/shock_rifle.rb', line 7
def max_ammo = 100
|
#name ⇒ Object
6
|
# File 'lib/termfront/weapon/shock_rifle.rb', line 6
def name = "S.Rifle"
|
#type_id ⇒ Object
10
|
# File 'lib/termfront/weapon/shock_rifle.rb', line 10
def type_id = :shock_rifle
|