game params

This commit is contained in:
Fraser Graham
2013-11-07 21:00:15 -08:00
parent b01654ec76
commit 3d0eb16f91
3 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -194,8 +194,8 @@ func (p *player) Tick(g *game) {
if math.Abs(float64(p.Robot.Speed)) < v.Epsilon && p.Robot.RepairCounter > 0 {
p.Robot.RepairCounter -= delta
if p.Robot.RepairCounter < 0 {
p.Robot.Health += 5
p.Robot.RepairCounter = 3.0
p.Robot.Health += g.repair_hp
p.Robot.RepairCounter = g.repair_rate
}
}