func makeAsplode(params map[string]float64) game.Ability { var a asplode a.id = ability.NextAbilityId() a.startRadius = params["startRadius"] a.endRadius = params["endRadius"] a.durationThinks = int(params["durationThinks"]) a.dps = params["dps"] return &a }
func makeSpawnCreeps(params map[string]float64) game.Ability { var sc spawnCreeps sc.id = ability.NextAbilityId() return &sc }