pared down logging in favor of unittests

This commit is contained in:
sm
2013-08-26 23:02:41 -07:00
parent 63f6d1a2e0
commit 1b29096479
5 changed files with 0 additions and 18 deletions
-4
View File
@@ -2,7 +2,6 @@ package main
import (
v "bitbucket.org/hackerbots/vector"
"log"
)
type weapon struct {
@@ -19,7 +18,6 @@ type stats struct {
func (s stats) valid() bool {
total := int(s.Speed) + s.Hp + s.WeaponRadius + s.ScannerRadius
log.Printf("total: %d", total)
if total > 500 {
return false
}
@@ -101,9 +99,7 @@ func (p *projectile) nudge() {
// TODO map damage Max to Min based on distance from explosion
if player.Robot.Health > 0 {
player.Robot.Health -= p.Damage
// log.Printf("Robot %+v is injured", player.Robot)
if player.Robot.Health <= 0 {
// log.Printf("Robot %+v is dead", player.Robot)
}
}
}