weapon stats are now set via robot

This commit is contained in:
Fraser Graham
2013-11-06 21:07:31 -08:00
parent dfb3dba4f4
commit 855b8518b8
2 changed files with 15 additions and 3 deletions
+2 -2
View File
@@ -218,9 +218,9 @@ func (p *player) fire(projectiles map[*Projectile]bool, turn int) *Projectile {
Id: idg.Hash(),
Position: p.Robot.Position,
MoveTo: *p.Robot.FireAt,
Damage: 10,
Damage: p.Robot.Stats.WeaponDamage,
Radius: p.Robot.Stats.WeaponRadius,
Speed: float32(p.Robot.Stats.Speed * 3),
Speed: p.Robot.Stats.WeaponSpeed,
Owner: p,
}
}