pared down logging in favor of unittests
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user