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:
+3
-3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user