All sorts of fun stuff...

- stats are now based on a 1-100 ranged and mapped to sensibles
- turnspeed and fire rate are available stats
- bugs in movement are squished
This commit is contained in:
Fraser Graham
2013-10-18 23:22:35 -07:00
parent d19b3f71fa
commit c80acb478b
5 changed files with 100 additions and 42 deletions
+3 -3
View File
@@ -40,8 +40,8 @@ func (c *ClientID) Valid() (bool, string) {
}
type ClientConfig struct {
ID string `json:"id"`
Stats Stats `json:"stats"`
ID string `json:"id"`
Stats StatsRequest `json:"stats"`
}
type BoardSize struct {
@@ -164,7 +164,7 @@ func addPlayer(ws *websocket.Conn) {
p := &player{
Robot: Robot{
Stats: conf.Stats,
Stats: DeriveStats(conf.Stats),
Id: player_id,
Name: clientid.Name,
Health: conf.Stats.Hp,